-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Update dependencies to the latest versions
- Loading branch information
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
"""`numpy` distributes its tests: run them""" | ||
|
||
import os | ||
import pathlib | ||
import sys | ||
import numpy as np | ||
|
||
# `--ignore-glob` expands patterns as absolute paths in the current folder | ||
os.chdir(pathlib.Path.home()) | ||
|
||
# `test_mem_policy.py` and `f2py/*` tests fail with Python 3.11 due to `numpy.distutils` | ||
# deprecations and issues with the latest `setuptools`. Ignore it until it's resolves in `numpy`. | ||
sys.exit( | ||
not np.test( | ||
verbose=2, | ||
extra_argv=["-n", "auto", "-k=not test_mem_policy and not f2py"], | ||
extra_argv=["-n", "auto", "-k=not test_mem_policy", "--ignore-glob=*f2py*"], | ||
) | ||
) |