#11873: Improve test regex so random directory names don't cause test to fail

This commit is contained in:
R David Murray 2011-05-05 11:52:44 -04:00
parent fdc2c5596e
commit 66a18fd801
2 changed files with 4 additions and 1 deletions

View 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', 'ba[^\/]*$', self.pkgdir)
self.assertNotCompiled(self.barfn)
self.assertCompiled(self.initfn)