aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-06-28 21:16:53 -0400
committerJason R. Coombs <jaraco@jaraco.com>2020-06-28 22:39:52 -0400
commit73ac895667b5bc6e3f5d685e7bad3d4535f07a80 (patch)
treedc91803af3c73e0a4737fc591ef589c3a17f4788
parentb8abfd21934b8b109050696bd99c8fc823f901f4 (diff)
downloadexternal_python_setuptools-73ac895667b5bc6e3f5d685e7bad3d4535f07a80.tar.gz
external_python_setuptools-73ac895667b5bc6e3f5d685e7bad3d4535f07a80.tar.bz2
external_python_setuptools-73ac895667b5bc6e3f5d685e7bad3d4535f07a80.zip
Fix test on Python 3.8 and earlier.
-rw-r--r--distutils/tests/test_install.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/distutils/tests/test_install.py b/distutils/tests/test_install.py
index 51c80e04..eb684a09 100644
--- a/distutils/tests/test_install.py
+++ b/distutils/tests/test_install.py
@@ -58,7 +58,8 @@ class InstallTestCase(support.TempdirManager,
libdir = os.path.join(destination, "lib", "python")
check_path(cmd.install_lib, libdir)
- platlibdir = os.path.join(destination, sys.platlibdir, "python")
+ _platlibdir = getattr(sys, "platlibdir", "lib")
+ platlibdir = os.path.join(destination, _platlibdir, "python")
check_path(cmd.install_platlib, platlibdir)
check_path(cmd.install_purelib, libdir)
check_path(cmd.install_headers,