summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2020-10-27 22:47:59 -0600
committerGitHub <noreply@github.com>2020-10-27 22:47:59 -0600
commit6d430191203236a89aa179b6581fa09c288f03bc (patch)
tree69635adfcfe3d77ebb108df1ec0713d854d7648c
parent3a5f457860c6a5c0432cb092d30d27454e7f8e20 (diff)
parenteceb8c1c01cd6ce60a3e0f0cd6a8439391e254eb (diff)
downloadnumpy-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.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 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):