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".
This commit is contained in:
Victor Stinner 2018-12-17 22:06:10 +01:00 committed by GitHub
parent 0af9c33262
commit 1dd035954b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View file

@ -1986,7 +1986,7 @@ def set_match_tests(patterns):
patterns = ()
elif all(map(_is_full_match_test, patterns)):
# Simple case: all patterns are full test identifier.
# The test.bisect utility only uses such full test identifiers.
# The test.bisect_cmd utility only uses such full test identifiers.
func = set(patterns).__contains__
else:
regex = '|'.join(map(fnmatch.translate, patterns))

View file

@ -0,0 +1,3 @@
Rename :mod:`test.bisect` module to :mod:`test.bisect_cmd` to avoid conflict
with :mod:`bisect` module when running directly a test like
``./python Lib/test/test_xmlrpc.py``.