diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2022-04-10 12:40:44 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2022-04-10 12:40:44 -0400 |
| commit | 9d86bf2e0583e6265d2952dfb8cb8a2c8281068b (patch) | |
| tree | f159564eac9b541d0b705fbe3203ddd1058030e1 | |
| parent | 12fd59da027bc546ceab0d3ae413320b0e187905 (diff) | |
| download | python-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.py | 4 |
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") |
