diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2019-08-28 17:43:47 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-28 17:43:47 -0600 |
commit | 766a88d2a1fcc03c74d19a6c04b87ab825819067 (patch) | |
tree | efb7d38b597e623d7e05c29eda2f3521acd4f6e1 /tools/swig/test/testFarray.py | |
parent | 9cc5f99f3281ade5eef6b097f5853eb8bb471416 (diff) | |
parent | bd59cd437be25443d918ddb558563a1581db8738 (diff) | |
download | numpy-766a88d2a1fcc03c74d19a6c04b87ab825819067.tar.gz |
Merge pull request #14364 from hugovk/fix-flake8-2020
MAINT: Fixes for prospective Python 3.10 and 4.0
Diffstat (limited to 'tools/swig/test/testFarray.py')
-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..e8bf711c5 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[:2]) sys.path.insert(0, os.path.join("build", libDir)) import Farray |