summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-15 15:22:59 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-15 15:22:59 (GMT)
commitef9a43b2c97d91ab3343372d3e310136938ee505 (patch)
treea6a673ad6c9985b9e070891872ec7c8f466f4e87 /Lib
parent5cb8a31dc46db672ac442fcd78b5acc5dad74e91 (diff)
downloadcpython-ef9a43b2c97d91ab3343372d3e310136938ee505.zip
cpython-ef9a43b2c97d91ab3343372d3e310136938ee505.tar.gz
cpython-ef9a43b2c97d91ab3343372d3e310136938ee505.tar.bz2
Rename test module names for #16421 to don't clash with other tests.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_imp.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py
index bf2141f..52c4399 100644
--- a/Lib/test/test_imp.py
+++ b/Lib/test/test_imp.py
@@ -223,11 +223,11 @@ class ImportTests(unittest.TestCase):
fileobj, pathname, description = imp.find_module(m)
fileobj.close()
mod0 = imp.load_dynamic(m, pathname)
- mod1 = imp.load_dynamic('foo', pathname)
- mod2 = imp.load_dynamic('bar', pathname)
+ mod1 = imp.load_dynamic('_testimportmultiple_foo', pathname)
+ mod2 = imp.load_dynamic('_testimportmultiple_bar', pathname)
self.assertEqual(mod0.__name__, m)
- self.assertEqual(mod1.__name__, 'foo')
- self.assertEqual(mod2.__name__, 'bar')
+ self.assertEqual(mod1.__name__, '_testimportmultiple_foo')
+ self.assertEqual(mod2.__name__, '_testimportmultiple_bar')
with self.assertRaises(ImportError):
imp.load_dynamic('nonexistent', pathname)