[Python-checkins] cpython (3.2): #11873: fix test regex so it covers windows os.sep as well.

r.david.murray python-checkins at python.org
Fri Jul 1 17:54:02 CEST 2011


http://hg.python.org/cpython/rev/f8ece8c93918
changeset:   71119:f8ece8c93918
branch:      3.2
parent:      71117:3f30cfe51315
user:        R David Murray <rdmurray at bitdance.com>
date:        Fri Jul 01 11:51:50 2011 -0400
summary:
  #11873: fix test regex so it covers windows os.sep as well.

files:
  Lib/test/test_compileall.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_compileall.py b/Lib/test/test_compileall.py
--- a/Lib/test/test_compileall.py
+++ b/Lib/test/test_compileall.py
@@ -248,7 +248,7 @@
         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)
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list