mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
Issue #11919: try to fix test_imp failure on some buildbots.
This commit is contained in:
parent
72562d065e
commit
11846905d3
@ -171,8 +171,9 @@ class ImportTests(unittest.TestCase):
|
||||
support.rmtree(test_package_name)
|
||||
|
||||
def test_issue9319(self):
|
||||
path = os.path.dirname(__file__)
|
||||
self.assertRaises(SyntaxError,
|
||||
imp.find_module, "test/badsyntax_pep3120")
|
||||
imp.find_module, "badsyntax_pep3120", [path])
|
||||
|
||||
|
||||
class ReloadTests(unittest.TestCase):
|
||||
|
Loading…
Reference in New Issue
Block a user