mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
There was still something wrong. The original NOTTESTS are replaced
by the new '-x' arguments, losing the previous items. Thus, test_support, test_b1 & test_b2 are executed (and warnings issued). (Discovered by Vladimir Marangozov.)
This commit is contained in:
parent
5fdf85254c
commit
6c74fea07d
1 changed files with 6 additions and 3 deletions
|
@ -72,10 +72,13 @@ def main(tests=None, testdir=None):
|
||||||
# Strip trailing ".py" from arguments
|
# Strip trailing ".py" from arguments
|
||||||
if args[i][-3:] == '.py':
|
if args[i][-3:] == '.py':
|
||||||
args[i] = args[i][:-3]
|
args[i] = args[i][:-3]
|
||||||
stdtests = STDTESTS
|
stdtests = STDTESTS[:]
|
||||||
nottests = NOTTESTS
|
nottests = NOTTESTS[:]
|
||||||
if exclude:
|
if exclude:
|
||||||
nottests = args
|
for arg in args:
|
||||||
|
if arg in stdtests:
|
||||||
|
stdtests.remove(arg)
|
||||||
|
nottests[:0] = args
|
||||||
args = []
|
args = []
|
||||||
tests = tests or args or findtests(testdir, stdtests, nottests)
|
tests = tests or args or findtests(testdir, stdtests, nottests)
|
||||||
test_support.verbose = verbose # Tell tests to be moderately quiet
|
test_support.verbose = verbose # Tell tests to be moderately quiet
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue