File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
"""`numpy` distributes its tests: run them"""
2
2
3
+ import os
4
+ import pathlib
3
5
import sys
6
+ import sysconfig
4
7
import numpy as np
5
8
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
+
6
14
# `test_mem_policy.py` and `f2py/*` tests fail with Python 3.11 due to `numpy.distutils`
7
15
# deprecations and issues with the latest `setuptools`. Ignore it until it's resolves in `numpy`.
8
16
sys .exit (
9
17
not np .test (
10
18
verbose = 2 ,
11
- extra_argv = ["-n" , "auto" , "-k=not test_mem_policy and not f2py" ],
19
+ extra_argv = [
20
+ "-n" ,
21
+ "auto" ,
22
+ "-k=not test_mem_policy and not test_configtool" ,
23
+ "--ignore-glob=*f2py*" ,
24
+ ],
12
25
)
13
26
)
You can’t perform that action at this time.
0 commit comments