Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Test failures on Fedora #15202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
limburgher opened this issue Dec 30, 2019 · 3 comments · Fixed by #15203
Closed

Test failures on Fedora #15202

limburgher opened this issue Dec 30, 2019 · 3 comments · Fixed by #15203

Comments

@limburgher
Copy link
Contributor

==================================== ERRORS ====================================
_ ERROR collecting build/testenv/lib64/python3.7/site-packages/numpy/core/tests/test_multiarray.py _
ImportError while importing test module '/home/gwyn/fedora/git/numpy/numpy-1.18.0/build/testenv/lib64/python3.7/site-packages/numpy/core/tests/test_multiarray.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
numpy/core/tests/test_multiarray.py:23: in
from test.support import no_tracing
E ModuleNotFoundError: No module named 'test'
_ ERROR collecting build/testenv/lib64/python3.7/site-packages/numpy/core/tests/test_regression.py _
ImportError while importing test module '/home/gwyn/fedora/git/numpy/numpy-1.18.0/build/testenv/lib64/python3.7/site-packages/numpy/core/tests/test_regression.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
numpy/core/tests/test_regression.py:20: in
from test.support import no_tracing
E ModuleNotFoundError: No module named 'test'
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
176 deselected, 2 error in 12.55 seconds
error: Bad exit status from /var/tmp/rpm-tmp.llNGWr (%check)

The project builds fine. This began during the 1.18.0 RCs.

@pv
Copy link
Member

pv commented Dec 30, 2019

In Fedora, the file is in python3-test package.

@pv
Copy link
Member

pv commented Dec 30, 2019

@mattip: numpy probably shouldn't use the test module --- its documentation says "Any use of this package outside of Python’s standard library is discouraged as code mentioned here can change or be removed without notice between releases of Python." (The function required here seems small enough to copypaste.)

@limburgher
Copy link
Contributor Author

In Fedora, the file is in python3-test package.

This works, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants