summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2020-01-01 17:39:44 -0700
committerGitHub <noreply@github.com>2020-01-01 17:39:44 -0700
commit33d5be08046c2e8a3cbbd35f3c2367f925ee2bdc (patch)
treefae0933a6cce6ddeef40768de3914b18bbd96b99 /numpy
parente803e1f05b76ce5a09447cc923995a21b31441b4 (diff)
parent867eb78d25a0640c43b67bc7d3d0fe068ba85680 (diff)
downloadnumpy-33d5be08046c2e8a3cbbd35f3c2367f925ee2bdc.tar.gz
Merge pull request #15187 from mattip/cython-test2
MAINT: unskip test on win32
Diffstat (limited to 'numpy')
-rw-r--r--numpy/random/_examples/cython/setup.py4
-rw-r--r--numpy/random/tests/test_extending.py2
2 files changed, 2 insertions, 4 deletions
diff --git a/numpy/random/_examples/cython/setup.py b/numpy/random/_examples/cython/setup.py
index 7ed0a3a18..20cedc4e3 100644
--- a/numpy/random/_examples/cython/setup.py
+++ b/numpy/random/_examples/cython/setup.py
@@ -9,9 +9,9 @@ import numpy as np
from distutils.core import setup
from Cython.Build import cythonize
from setuptools.extension import Extension
-from os.path import join, abspath, dirname
+from os.path import join, dirname
-path = abspath(dirname(__file__))
+path = dirname(__file__)
defs = [('NPY_NO_DEPRECATED_API', 0)]
extending = Extension("extending",
diff --git a/numpy/random/tests/test_extending.py b/numpy/random/tests/test_extending.py
index 0cad76ed1..23a874fb1 100644
--- a/numpy/random/tests/test_extending.py
+++ b/numpy/random/tests/test_extending.py
@@ -40,10 +40,8 @@ else:
@pytest.mark.skipif(cython is None, reason="requires cython")
@pytest.mark.slow
-@pytest.mark.skipif(sys.platform == 'win32', reason="cmd too long on CI")
def test_cython(tmp_path):
examples = os.path.join(os.path.dirname(__file__), '..', '_examples')
- base = os.path.dirname(examples)
shutil.copytree(examples, tmp_path / '_examples')
subprocess.check_call([sys.executable, 'setup.py', 'build'],
cwd=str(tmp_path / '_examples' / 'cython'))