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

Skip to content

Commit 1dd0359

Browse files
authored
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 0af9c33 commit 1dd0359

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/test/support/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1986,7 +1986,7 @@ def set_match_tests(patterns):
19861986
patterns = ()
19871987
elif all(map(_is_full_match_test, patterns)):
19881988
# Simple case: all patterns are full test identifier.
1989-
# The test.bisect utility only uses such full test identifiers.
1989+
# The test.bisect_cmd utility only uses such full test identifiers.
19901990
func = set(patterns).__contains__
19911991
else:
19921992
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)