Issue #11919: try to fix test_imp failure on some buildbots.
This commit is contained in:
commit
d4a2ff40d5
|
@ -177,8 +177,9 @@ class ImportTests(unittest.TestCase):
|
||||||
support.rmtree(test_package_name)
|
support.rmtree(test_package_name)
|
||||||
|
|
||||||
def test_issue9319(self):
|
def test_issue9319(self):
|
||||||
|
path = os.path.dirname(__file__)
|
||||||
self.assertRaises(SyntaxError,
|
self.assertRaises(SyntaxError,
|
||||||
imp.find_module, "test/badsyntax_pep3120")
|
imp.find_module, "badsyntax_pep3120", [path])
|
||||||
|
|
||||||
|
|
||||||
class ReloadTests(unittest.TestCase):
|
class ReloadTests(unittest.TestCase):
|
||||||
|
|
Loading…
Reference in New Issue