Skip to content

Commit 8c5d355

Browse files
committed
Fix failing test due to removed setuptools feature, use_2to3
setuptools removed use_2to3 in version v58.0.1 (2021-09-06). Some tests install the anyjson package which uses this feature and so those tests result in a command failure. The failure appeared as: error in anyjson setup command: use_2to3 is invalid. As anyjson package is no longer maintained (last release was 2012), change the tests to use a package that is healthy. For details on the setuptools change, see the history at: https://setuptools.readthedocs.io/en/latest/history.html#v58-0-2
1 parent c928d89 commit 8c5d355

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

news/753e9f4f-32d3-4986-a78a-f84406ea752a.trivial.rst

Whitespace-only changes.

tests/functional/test_install_reqs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_requirements_file(script, with_wheel):
6262
Test installing from a requirements file.
6363
6464
"""
65-
other_lib_name, other_lib_version = "anyjson", "0.3"
65+
other_lib_name, other_lib_version = "peppercorn", "0.6"
6666
script.scratch_path.joinpath("initools-req.txt").write_text(
6767
textwrap.dedent(
6868
f"""\
@@ -157,7 +157,7 @@ def test_multiple_requirements_files(script, tmpdir, with_wheel):
157157
Test installing from multiple nested requirements files.
158158
159159
"""
160-
other_lib_name, other_lib_version = "anyjson", "0.3"
160+
other_lib_name, other_lib_version = "six", "1.16.0"
161161
script.scratch_path.joinpath("initools-req.txt").write_text(
162162
textwrap.dedent(
163163
"""

0 commit comments

Comments
 (0)