summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2022-04-10 12:40:44 -0400
committerJason R. Coombs <jaraco@jaraco.com>2022-04-10 12:40:44 -0400
commit9d86bf2e0583e6265d2952dfb8cb8a2c8281068b (patch)
treef159564eac9b541d0b705fbe3203ddd1058030e1
parent12fd59da027bc546ceab0d3ae413320b0e187905 (diff)
downloadpython-setuptools-git-9d86bf2e0583e6265d2952dfb8cb8a2c8281068b.tar.gz
Refactor as simple replace. If a full string substitution proves to be necessary, let's create a mapping.
-rw-r--r--distutils/tests/test_install.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/distutils/tests/test_install.py b/distutils/tests/test_install.py
index 8cf24545..3aef9e43 100644
--- a/distutils/tests/test_install.py
+++ b/distutils/tests/test_install.py
@@ -56,9 +56,7 @@ class InstallTestCase(support.TempdirManager,
expected = os.path.normpath(expected)
self.assertEqual(got, expected)
- impl_name = sys.implementation.name
- if impl_name == "cpython":
- impl_name = "python"
+ impl_name = sys.implementation.name.replace("cpython", "python")
libdir = os.path.join(destination, "lib", impl_name)
check_path(cmd.install_lib, libdir)
_platlibdir = getattr(sys, "platlibdir", "lib")