diff options
author | Hugo <hugovk@users.noreply.github.com> | 2019-08-26 17:49:00 +0300 |
---|---|---|
committer | Hugo <hugovk@users.noreply.github.com> | 2019-08-26 18:22:55 +0300 |
commit | e7c1f8e789d8ccea6034f791393a2122e1237886 (patch) | |
tree | 093a02e7e309288ce3d22f7081f2158d486af301 /tools | |
parent | dc089026b4ad0d2d9ea992c7f1b9b5e716dd82cd (diff) | |
download | numpy-e7c1f8e789d8ccea6034f791393a2122e1237886.tar.gz |
BUG: Fix for Python 3.10
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/swig/test/testFarray.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/swig/test/testFarray.py b/tools/swig/test/testFarray.py index 0037dc9b3..ea5a06257 100755 --- a/tools/swig/test/testFarray.py +++ b/tools/swig/test/testFarray.py @@ -15,7 +15,7 @@ else: BadListError = ValueError # Add the distutils-generated build directory to the python search path and then # import the extension module -libDir = "lib.%s-%s" % (get_platform(), sys.version[:3]) +libDir = "lib.{}-{}.{}".format(get_platform(), *sys.version_info) sys.path.insert(0, os.path.join("build", libDir)) import Farray |