Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
98e3df38
Commit
98e3df38
authored
Dec 16, 2009
by
R. David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #7396: fix -s, which was broken by the -j enhancement.
parent
0c0dcaf2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
Lib/test/regrtest.py
Lib/test/regrtest.py
+9
-11
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/regrtest.py
View file @
98e3df38
...
...
@@ -406,9 +406,14 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
stdtests
.
remove
(
arg
)
nottests
[:
0
]
=
args
args
=
[]
tests
=
tests
or
args
or
findtests
(
testdir
,
stdtests
,
nottests
)
alltests
=
findtests
(
testdir
,
stdtests
,
nottests
)
tests
=
tests
or
args
or
alltests
if
single
:
tests
=
tests
[:
1
]
try
:
next_single_test
=
alltests
[
alltests
.
index
(
tests
[
0
])
+
1
]
except
IndexError
:
next_single_test
=
None
if
randomize
:
random
.
seed
(
random_seed
)
print
"Using random seed"
,
random_seed
...
...
@@ -613,16 +618,9 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
raise
if single:
alltests = findtests(testdir, stdtests, nottests)
for i in range(len(alltests)):
if tests[0] == alltests[i]:
if i == len(alltests) - 1:
os.unlink(filename)
else:
fp = open(filename, 'w')
fp.write(alltests[i+1] + '
\
n
')
fp.close()
break
if next_single_test:
with open(filename, 'w') as fp:
fp.write(next_single_test + '
\
n
')
else:
os.unlink(filename)
...
...
Misc/NEWS
View file @
98e3df38
...
...
@@ -46,6 +46,8 @@ Library
Tests
-----
- Issue #7396: fix regrtest -s, which was broken by the -j enhancement.
- Issue #7498: test_multiprocessing now uses test_support.find_unused_port
instead of a hardcoded port number in test_rapid_restart.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment