Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8880127

Browse files
vstinnerjcfr
authored andcommitted
bpo-35519: Rename test.bisect to test.bisect_cmd (GH-11200)
Rename test.bisect module to test.bisect_cmd to avoid conflict with bisect module when running directly a test like "./python Lib/test/test_xmlrpc.py".
1 parent b74b1f3 commit 8880127

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed
File renamed without changes.

Lib/test/support/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1972,7 +1972,7 @@ def set_match_tests(patterns):
19721972
patterns = ()
19731973
elif all(map(_is_full_match_test, patterns)):
19741974
# Simple case: all patterns are full test identifier.
1975-
# The test.bisect utility only uses such full test identifiers.
1975+
# The test.bisect_cmd utility only uses such full test identifiers.
19761976
func = set(patterns).__contains__
19771977
else:
19781978
regex = '|'.join(map(fnmatch.translate, patterns))
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Rename :mod:`test.bisect` module to :mod:`test.bisect_cmd` to avoid conflict
2+
with :mod:`bisect` module when running directly a test like
3+
``./python Lib/test/test_xmlrpc.py``.

0 commit comments

Comments
 (0)