From: Antoine Pitrou Date: Sun, 8 Jul 2012 11:16:15 +0000 (+0200) Subject: Fix test failure under Windows X-Git-Tag: v3.3.0b2~280 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6803855ecf8044e3e6065dd624891a0179071537;p=python Fix test failure under Windows --- diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 35a4bafb42..10911585d4 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: