Skip to content

Commit f766635

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
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', [])

0 commit comments

Comments
 (0)