]> granicus.if.org Git - python/commitdiff
#11873: fix test regex so it covers windows os.sep as well.
authorR David Murray <rdmurray@bitdance.com>
Fri, 1 Jul 2011 15:51:50 +0000 (11:51 -0400)
committerR David Murray <rdmurray@bitdance.com>
Fri, 1 Jul 2011 15:51:50 +0000 (11:51 -0400)
Lib/test/test_compileall.py

index d1c9ee58bd4fad57112d98864fb34694cc6bb882..866eb40e02308b54d840ee4286b4cccba9042ccf 100644 (file)
@@ -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)