mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
0af9c33262
commit
1dd035954b
3 changed files with 4 additions and 1 deletions
|
@ -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))
|
||||
|
|
|
@ -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``.
|
Loading…
Add table
Add a link
Reference in a new issue