(original) (raw)
changeset: 69853:76bd26565cc7 branch: 3.2 parent: 69851:9b76edfddc54 user: R David Murray rdmurray@bitdance.com date: Thu May 05 11:52:44 2011 -0400 files: Lib/test/test_compileall.py Misc/NEWS description: #11873: Improve test regex so random directory names don't cause test to fail diff -r 9b76edfddc54 -r 76bd26565cc7 Lib/test/test_compileall.py --- a/Lib/test/test_compileall.py Fri May 06 00:02:12 2011 +1000 +++ b/Lib/test/test_compileall.py Thu May 05 11:52:44 2011 -0400 @@ -248,7 +248,7 @@ 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) diff -r 9b76edfddc54 -r 76bd26565cc7 Misc/NEWS --- a/Misc/NEWS Fri May 06 00:02:12 2011 +1000 +++ b/Misc/NEWS Thu May 05 11:52:44 2011 -0400 @@ -322,6 +322,9 @@ 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. /rdmurray@bitdance.com