summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_import.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-07-08 11:16:15 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-07-08 11:16:15 (GMT)
commit6803855ecf8044e3e6065dd624891a0179071537 (patch)
tree492084a64de50d94d88abb29e9c4cf37c38e91e4 /Lib/test/test_import.py
parentc2faa5b3810aa8112c8194bd5cf5e60ec43ff76c (diff)
downloadcpython-6803855ecf8044e3e6065dd624891a0179071537.zip
cpython-6803855ecf8044e3e6065dd624891a0179071537.tar.gz
cpython-6803855ecf8044e3e6065dd624891a0179071537.tar.bz2
Fix test failure under Windows
Diffstat (limited to 'Lib/test/test_import.py')
-rw-r--r--Lib/test/test_import.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
index 35a4baf..1091158 100644
--- a/Lib/test/test_import.py
+++ b/Lib/test/test_import.py
@@ -795,7 +795,7 @@ class ImportTracebackTests(unittest.TestCase):
tb = tb.tb_next
self.assertEqual(len(deduped_files), len(files), deduped_files)
for fn, pat in zip(deduped_files, files):
- self.assertRegex(fn, pat)
+ self.assertIn(pat, fn)
def test_nonexistent_module(self):
try: