Skip to content

Commit 855b7c4

Browse files
committed
Remove tests assuring import * fails. It works now!
1 parent 3da1f69 commit 855b7c4

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

grumpy-tools-src/grumpy_tools/compiler/imputil_test.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,8 @@ def testImportFromAsMembers(self):
174174
imp.add_binding(imputil.Import.MEMBER, 'baz', 'bar')
175175
self._check_imports('from foo import bar as baz', [imp])
176176

177-
def testImportFromWildcardRaises(self):
178-
self.assertRaises(util.ImportError, self.importer.visit,
179-
pythonparser.parse('from foo import *').body[0])
177+
# def testImportFromWildcardRaises(self):
178+
# self._check_imports('from foo import *', [])
180179

181180
def testImportFromFuture(self):
182181
self._check_imports('from __future__ import print_function', [])

grumpy-tools-src/grumpy_tools/compiler/stmt_test.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,6 @@ def testImportNativeType(self):
333333
from "__go__/time" import Duration
334334
print Duration""")))
335335

336-
def testImportWildcardMemberRaises(self):
337-
regexp = 'wildcard member import is not implemented'
338-
self.assertRaisesRegexp(util.ImportError, regexp, _ParseAndVisit,
339-
'from foo import *')
340-
self.assertRaisesRegexp(util.ImportError, regexp, _ParseAndVisit,
341-
'from "__go__/foo" import *')
342-
343336
def testPrintStatement(self):
344337
self.assertEqual((0, 'abc 123\nfoo bar\n'), _GrumpRun(textwrap.dedent("""\
345338
print 'abc',

0 commit comments

Comments
 (0)