diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2020-10-27 22:47:59 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-27 22:47:59 -0600 |
| commit | 6d430191203236a89aa179b6581fa09c288f03bc (patch) | |
| tree | 69635adfcfe3d77ebb108df1ec0713d854d7648c | |
| parent | 3a5f457860c6a5c0432cb092d30d27454e7f8e20 (diff) | |
| parent | eceb8c1c01cd6ce60a3e0f0cd6a8439391e254eb (diff) | |
| download | numpy-6d430191203236a89aa179b6581fa09c288f03bc.tar.gz | |
Merge pull request #17660 from charris/backport-17658
TST: Simplify source path names in test_extending.
| -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 42425c2c1..83f06fde8 100644 --- a/numpy/random/_examples/cython/setup.py +++ b/numpy/random/_examples/cython/setup.py @@ -19,7 +19,7 @@ inc_path = np.get_include() lib_path = join(np.get_include(), '..', '..', 'random', 'lib') extending = Extension("extending", - sources=[join(path, 'extending.pyx')], + sources=[join('.', 'extending.pyx')], include_dirs=[ np.get_include(), join(path, '..', '..') @@ -27,7 +27,7 @@ extending = Extension("extending", define_macros=defs, ) distributions = Extension("extending_distributions", - sources=[join(path, 'extending_distributions.pyx')], + sources=[join('.', 'extending_distributions.pyx')], include_dirs=[inc_path], library_dirs=[lib_path], libraries=['npyrandom'], diff --git a/numpy/random/tests/test_extending.py b/numpy/random/tests/test_extending.py index 428736203..1d872a5be 100644 --- a/numpy/random/tests/test_extending.py +++ b/numpy/random/tests/test_extending.py @@ -41,8 +41,6 @@ else: cython = None -@pytest.mark.skipif(sys.platform == "win32" and sys.version_info[:2] == (3, 9), - reason="temp filename problem with Python 3.9 on Windows") @pytest.mark.skipif(cython is None, reason="requires cython") @pytest.mark.slow def test_cython(tmp_path): |
