(original) (raw)
changeset: 69854:83e069281810 parent: 69852:b06d7aa8ac20 parent: 69853:76bd26565cc7 user: R David Murray rdmurray@bitdance.com date: Thu May 05 12:17:50 2011 -0400 files: Lib/test/test_compileall.py Misc/NEWS description: Merge: #11873: Improve test regex so random directory names don't cause test to fail diff -r b06d7aa8ac20 -r 83e069281810 Lib/test/test_compileall.py --- a/Lib/test/test_compileall.py Fri May 06 00:03:49 2011 +1000 +++ b/Lib/test/test_compileall.py Thu May 05 12:17:50 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 b06d7aa8ac20 -r 83e069281810 Misc/NEWS --- a/Misc/NEWS Fri May 06 00:03:49 2011 +1000 +++ b/Misc/NEWS Thu May 05 12:17:50 2011 -0400 @@ -561,6 +561,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 #11958: Fix FTP tests for IPv6, bind to "::1" instead of "localhost". Patch written by Charles-Francois Natali. /rdmurray@bitdance.com