From: R David Murray Date: Fri, 1 Jul 2011 15:51:50 +0000 (-0400) Subject: #11873: fix test regex so it covers windows os.sep as well. X-Git-Tag: v3.2.1rc2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a3bb2f55148c37008e9840c0b5e98e41a88fd5e4;p=thirdparty%2FPython%2Fcpython.git #11873: fix test regex so it covers windows os.sep as well. --- diff --git a/Lib/test/test_compileall.py b/Lib/test/test_compileall.py index d1c9ee58bd4f..866eb40e0230 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', r'ba[^\/]*$', self.pkgdir) self.assertNotCompiled(self.barfn) self.assertCompiled(self.initfn)