diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/random/_examples/cython/setup.py | 4 | ||||
-rw-r--r-- | numpy/random/tests/test_extending.py | 2 |
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')) |