Commit 66a18fd8 authored by R David Murray's avatar R David Murray

#11873: Improve test regex so random directory names don't cause test to fail

parent fdc2c559
...@@ -248,7 +248,7 @@ class CommandLineTests(unittest.TestCase): ...@@ -248,7 +248,7 @@ class CommandLineTests(unittest.TestCase):
self.assertEqual(b'', quiet) self.assertEqual(b'', quiet)
def test_regexp(self): def test_regexp(self):
self.assertRunOK('-q', '-x', 'ba.*', self.pkgdir) self.assertRunOK('-q', '-x', 'ba[^\/]*$', self.pkgdir)
self.assertNotCompiled(self.barfn) self.assertNotCompiled(self.barfn)
self.assertCompiled(self.initfn) self.assertCompiled(self.initfn)
......
...@@ -322,6 +322,9 @@ Extensions ...@@ -322,6 +322,9 @@ Extensions
Tests Tests
----- -----
- Issue #11873: Change regex in test_compileall to fix occasional failures when
when the randomly generated temporary path happened to match the regex.
- Issue #10914: Add a minimal embedding test to test_capi. - Issue #10914: Add a minimal embedding test to test_capi.
- Issue #11790: Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition. - Issue #11790: Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment