Skip to content

Commit 9f202ad

Browse files
committed
fixup! Update dependencies to the latest versions
1 parent 3989082 commit 9f202ad

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test_package/numpy/test.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
"""`numpy` distributes its tests: run them"""
22

3+
import os
4+
import pathlib
35
import sys
6+
import sysconfig
47
import numpy as np
58

9+
# `--ignore-glob` expands patterns as absolute paths in the current folder
10+
os.chdir(pathlib.Path.home())
11+
12+
os.environ["PATH"] = f"{sysconfig.get_path('scripts')}{os.pathsep}{os.environ['PATH']}"
13+
614
# `test_mem_policy.py` and `f2py/*` tests fail with Python 3.11 due to `numpy.distutils`
715
# deprecations and issues with the latest `setuptools`. Ignore it until it's resolves in `numpy`.
816
sys.exit(
917
not np.test(
1018
verbose=2,
11-
extra_argv=["-n", "auto", "-k=not test_mem_policy and not f2py"],
19+
extra_argv=["-n", "auto", "-k=not test_mem_policy", "--ignore-glob=*f2py*"],
1220
)
1321
)

0 commit comments

Comments
 (0)