diff options
author | R David Murray <rdmurray@bitdance.com> | 2011-05-05 15:52:44 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2011-05-05 15:52:44 (GMT) |
commit | 66a18fd801a87faa2079a2d7b66e8b1a8945b691 (patch) | |
tree | d234e9c21ed03baeb995545928b16cd5c9250d69 | |
parent | fdc2c5596e76347e6a979496cd754b464bc7e7a9 (diff) | |
download | cpython-66a18fd801a87faa2079a2d7b66e8b1a8945b691.zip cpython-66a18fd801a87faa2079a2d7b66e8b1a8945b691.tar.gz cpython-66a18fd801a87faa2079a2d7b66e8b1a8945b691.tar.bz2 |
#11873: Improve test regex so random directory names don't cause test to fail
-rw-r--r-- | Lib/test/test_compileall.py | 2 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_compileall.py b/Lib/test/test_compileall.py index 250d31b..c1dfdb3 100644 --- a/Lib/test/test_compileall.py +++ b/Lib/test/test_compileall.py @@ -248,7 +248,7 @@ class CommandLineTests(unittest.TestCase): self.assertEqual(b'', quiet) def test_regexp(self): - self.assertRunOK('-q', '-x', 'ba.*', self.pkgdir) + self.assertRunOK('-q', '-x', 'ba[^\/]*$', self.pkgdir) self.assertNotCompiled(self.barfn) self.assertCompiled(self.initfn) @@ -322,6 +322,9 @@ Extensions 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 #11790: Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition. |