From a3bb2f55148c37008e9840c0b5e98e41a88fd5e4 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Fri, 1 Jul 2011 11:51:50 -0400 Subject: [PATCH] #11873: fix test regex so it covers windows os.sep as well. --- Lib/test/test_compileall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_compileall.py b/Lib/test/test_compileall.py index d1c9ee58bd4..866eb40e023 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)