]> granicus.if.org Git - python/commitdiff
#11873: another try at fixing the regex, courtesy of Victor Stinner
authorR David Murray <rdmurray@bitdance.com>
Fri, 1 Jul 2011 18:55:43 +0000 (14:55 -0400)
committerR David Murray <rdmurray@bitdance.com>
Fri, 1 Jul 2011 18:55:43 +0000 (14:55 -0400)
Lib/test/test_compileall.py

index 866eb40e02308b54d840ee4286b4cccba9042ccf..6ec105c922339c59b33686c0534d0ae34a5acd6b 100644 (file)
@@ -248,7 +248,7 @@ class CommandLineTests(unittest.TestCase):
         self.assertEqual(b'', quiet)
 
     def test_regexp(self):
-        self.assertRunOK('-q', '-x', r'ba[^\/]*$', self.pkgdir)
+        self.assertRunOK('-q', '-x', r'ba[^\\/]*$', self.pkgdir)
         self.assertNotCompiled(self.barfn)
         self.assertCompiled(self.initfn)