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.2rc1~165 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3bb2f55148c37008e9840c0b5e98e41a88fd5e4;p=python #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 d1c9ee58bd..866eb40e02 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)