[Python-checkins] cpython (3.2): Issue #11919: try to fix test_imp failure on some buildbots.

antoine.pitrou python-checkins at python.org
Mon Apr 25 21:40:03 CEST 2011


http://hg.python.org/cpython/rev/2f2c7eb27437
changeset:   69556:2f2c7eb27437
branch:      3.2
parent:      69554:77cf9e4b144b
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Mon Apr 25 21:39:49 2011 +0200
summary:
  Issue #11919: try to fix test_imp failure on some buildbots.

files:
  Lib/test/test_imp.py |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py
--- a/Lib/test/test_imp.py
+++ b/Lib/test/test_imp.py
@@ -171,8 +171,9 @@
             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):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list