summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xLib/test/bisect_cmd.py (renamed from Lib/test/bisect.py)0
-rw-r--r--Lib/test/support/__init__.py2
-rw-r--r--Misc/NEWS.d/next/Tests/2018-12-17-16-41-45.bpo-35519.RR3L_w.rst3
3 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/bisect.py b/Lib/test/bisect_cmd.py
index 968537e..968537e 100755
--- a/Lib/test/bisect.py
+++ b/Lib/test/bisect_cmd.py
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index 9ffb04d..53119e1 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -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))
diff --git a/Misc/NEWS.d/next/Tests/2018-12-17-16-41-45.bpo-35519.RR3L_w.rst b/Misc/NEWS.d/next/Tests/2018-12-17-16-41-45.bpo-35519.RR3L_w.rst
new file mode 100644
index 0000000..e108dd8
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2018-12-17-16-41-45.bpo-35519.RR3L_w.rst
@@ -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``.