mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
#11873: Improve test regex so random directory names don't cause test to fail
This commit is contained in:
parent
fdc2c5596e
commit
66a18fd801
2 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue