]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-35519: Rename test.bisect to test.bisect_cmd (GH-11200)
authorVictor Stinner <vstinner@redhat.com>
Mon, 17 Dec 2018 21:06:10 +0000 (22:06 +0100)
committerGitHub <noreply@github.com>
Mon, 17 Dec 2018 21:06:10 +0000 (22:06 +0100)
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".

Lib/test/bisect_cmd.py [moved from Lib/test/bisect.py with 100% similarity]
Lib/test/support/__init__.py
Misc/NEWS.d/next/Tests/2018-12-17-16-41-45.bpo-35519.RR3L_w.rst [new file with mode: 0644]

similarity index 100%
rename from Lib/test/bisect.py
rename to Lib/test/bisect_cmd.py
index 9ffb04de9bc164a9df234d79790140b5097ca2e5..53119e138cff4772884f64bc313fc8090c762421 100644 (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))
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 (file)
index 0000000..e108dd8
--- /dev/null
@@ -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``.