From af6e61668ac3598daca111e7ed81bcca5e910735 Mon Sep 17 00:00:00 2001 From: mattip Date: Fri, 27 Dec 2019 09:28:25 +0200 Subject: MAINT: unskip test on win32 --- numpy/random/_examples/cython/setup.py | 4 ++-- numpy/random/tests/test_extending.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'numpy') 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..439980fd4 100644 --- a/numpy/random/tests/test_extending.py +++ b/numpy/random/tests/test_extending.py @@ -40,7 +40,6 @@ 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) -- cgit v1.2.1 From 867eb78d25a0640c43b67bc7d3d0fe068ba85680 Mon Sep 17 00:00:00 2001 From: mattip Date: Fri, 27 Dec 2019 13:29:42 +0200 Subject: MAINT: remove dead code from review --- numpy/random/tests/test_extending.py | 1 - 1 file changed, 1 deletion(-) (limited to 'numpy') diff --git a/numpy/random/tests/test_extending.py b/numpy/random/tests/test_extending.py index 439980fd4..23a874fb1 100644 --- a/numpy/random/tests/test_extending.py +++ b/numpy/random/tests/test_extending.py @@ -42,7 +42,6 @@ else: @pytest.mark.slow 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')) -- cgit v1.2.1