Run pytest with -m pytest instead of hacks
This commit is contained in:
parent
95e0860410
commit
0f3aa20c42
@ -109,12 +109,10 @@ rm -rf doc/build
|
|||||||
%check
|
%check
|
||||||
# We temporarily skip test_round_trip_direct_type_affinity to unblock the Python 3.7 rebuild
|
# We temporarily skip test_round_trip_direct_type_affinity to unblock the Python 3.7 rebuild
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1591353
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1591353
|
||||||
pytest2="py.test-$(%{__python2} -c 'from __future__ import print_function; import sys; vi=sys.version_info; print("{0}.{1}".format(vi.major, vi.minor))')"
|
PYTHONPATH=. %{__python2} -m pytest test -k "not test_round_trip_direct_type_affinity"
|
||||||
PYTHONPATH=. "$pytest2" test -k "not test_round_trip_direct_type_affinity"
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
pytest3="py.test-$(%{__python3} -c 'from __future__ import print_function; import sys; vi=sys.version_info; print("{0}.{1}".format(vi.major, vi.minor))')"
|
PYTHONPATH=. %{__python3} -m pytest test -k "not test_round_trip_direct_type_affinity"
|
||||||
PYTHONPATH=. "$pytest3" test -k "not test_round_trip_direct_type_affinity"
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user