mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Issue #29035: Simplify a regex in libregrtest
regrtest: simplify the regex used to match test names for the --fromfile command line option.
This commit is contained in:
parent
c9c760d6ec
commit
e8cfec5abc
2 changed files with 10 additions and 5 deletions
|
@ -676,6 +676,14 @@ class ArgsTestCase(BaseTestCase):
|
|||
output = self.run_tests('--fromfile', filename)
|
||||
self.check_executed_tests(output, tests)
|
||||
|
||||
# test format 'Lib/test/test_opcodes.py'
|
||||
with open(filename, "w") as fp:
|
||||
for name in tests:
|
||||
print('Lib/test/%s.py' % name, file=fp)
|
||||
|
||||
output = self.run_tests('--fromfile', filename)
|
||||
self.check_executed_tests(output, tests)
|
||||
|
||||
def test_interrupted(self):
|
||||
code = TEST_INTERRUPTED
|
||||
test = self.create_test('sigint', code=code)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue