Use system Python interpreter in tests
`python -m pytest` is more robust than `pytest` in ensuring tests are run with the intended interpreter. Add a note about setting `PYTHONPATH=./`.
This commit is contained in:
parent
e65bfd6a7f
commit
7e438b0c74
@ -137,10 +137,12 @@ pushd %{py3dir}
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
%check
|
%check
|
||||||
PYTHONPATH=./ py.test-2
|
# PYTHONPATH=./ is usually unnecessary with pytest, but it is needed here
|
||||||
|
# for testing werkzeug's reloader.
|
||||||
|
PYTHONPATH=./ %{__python2} -m pytest
|
||||||
|
|
||||||
pushd %{py3dir}
|
pushd %{py3dir}
|
||||||
PYTHONPATH=./ py.test-3
|
PYTHONPATH=./ %{__python3} -m pytest
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%files -n python2-werkzeug
|
%files -n python2-werkzeug
|
||||||
@ -161,6 +163,7 @@ popd
|
|||||||
* Mon Jul 29 2019 Petr Viktorin <pviktori@redhat.com> - 0.14.1-10
|
* Mon Jul 29 2019 Petr Viktorin <pviktori@redhat.com> - 0.14.1-10
|
||||||
- Remove non-essential Python 2 test dependencies
|
- Remove non-essential Python 2 test dependencies
|
||||||
https://fedoraproject.org/wiki/Changes/F31_Mass_Python_2_Package_Removal#Removing_Requirements
|
https://fedoraproject.org/wiki/Changes/F31_Mass_Python_2_Package_Removal#Removing_Requirements
|
||||||
|
- Use system Python interpreter in tests
|
||||||
|
|
||||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-9
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-9
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user