[Python-checkins] bpo-29512: Rename Lib/test/bisect.py to bisect_cmd.py (#7229)

Victor Stinner webhook-mailer at python.org
Wed May 30 11:24:44 EDT 2018


https://github.com/python/cpython/commit/823c295efa4efea93cadc640ed6122cd9d86cec4
commit: 823c295efa4efea93cadc640ed6122cd9d86cec4
branch: 2.7
author: Victor Stinner <vstinner at redhat.com>
committer: GitHub <noreply at github.com>
date: 2018-05-30T17:24:40+02:00
summary:

bpo-29512: Rename Lib/test/bisect.py to bisect_cmd.py (#7229)

Rename Lib/test/bisect.py to Lib/test/bisect_cmd.py. The old name was
in conflict with Lib/bisect.py, causing test failures, depending how
tests were run.

For example, "python2.7 Lib/test/test_httpservers.py" imported
indirectly Lib/test/bisect.py instead of Lib/bisect.py
on "import bisect".

files:
A Lib/test/bisect_cmd.py
A Misc/NEWS.d/next/Tests/2018-05-30-00-39-57.bpo-29512.EHrDzs.rst
D Lib/test/bisect.py

diff --git a/Lib/test/bisect.py b/Lib/test/bisect_cmd.py
similarity index 100%
rename from Lib/test/bisect.py
rename to Lib/test/bisect_cmd.py
diff --git a/Misc/NEWS.d/next/Tests/2018-05-30-00-39-57.bpo-29512.EHrDzs.rst b/Misc/NEWS.d/next/Tests/2018-05-30-00-39-57.bpo-29512.EHrDzs.rst
new file mode 100644
index 000000000000..aa5dc64e3b0a
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2018-05-30-00-39-57.bpo-29512.EHrDzs.rst
@@ -0,0 +1,3 @@
+Rename Lib/test/bisect.py to Lib/test/bisect_cmd.py. The old name was in
+conflict with Lib/bisect.py, causing test failures, depending how tests
+were run.



More information about the Python-checkins mailing list