diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2019-02-23 08:18:34 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2019-02-23 08:18:34 +0100 |
commit | 91db5178860947b9e099c2dc1a5e0fac43ff8194 (patch) | |
tree | 2a813ad01eb7ea0bede6bbb4700df1e8dd99ed9f | |
parent | 3f2537db5e2a3d4e3ae7469072cdfc6a5d0cd903 (diff) | |
download | cython-91db5178860947b9e099c2dc1a5e0fac43ff8194.tar.gz |
Fix a test failure due to a stupid str type check in Py2 distutils.
-rwxr-xr-x | runtests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtests.py b/runtests.py index 562192198..f98c17bf8 100755 --- a/runtests.py +++ b/runtests.py @@ -1125,6 +1125,8 @@ class CythonCompileTestCase(unittest.TestCase): extension = newext or extension if self.language == 'cpp': extension.language = 'c++' + if IS_PY2: + workdir = str(workdir) # work around type check in distutils that disallows unicode strings build_extension.extensions = [extension] build_extension.build_temp = workdir build_extension.build_lib = workdir |