summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2019-02-23 08:18:34 +0100
committerStefan Behnel <stefan_ml@behnel.de>2019-02-23 08:18:34 +0100
commit91db5178860947b9e099c2dc1a5e0fac43ff8194 (patch)
tree2a813ad01eb7ea0bede6bbb4700df1e8dd99ed9f
parent3f2537db5e2a3d4e3ae7469072cdfc6a5d0cd903 (diff)
downloadcython-91db5178860947b9e099c2dc1a5e0fac43ff8194.tar.gz
Fix a test failure due to a stupid str type check in Py2 distutils.
-rwxr-xr-xruntests.py2
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