From 0f3aa20c42de7c60c10864582edec3b595d792f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 14 Jun 2018 16:51:40 +0200 Subject: [PATCH] Run pytest with -m pytest instead of hacks --- python-sqlalchemy.spec | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/python-sqlalchemy.spec b/python-sqlalchemy.spec index 63fba48..2e340d5 100644 --- a/python-sqlalchemy.spec +++ b/python-sqlalchemy.spec @@ -109,12 +109,10 @@ rm -rf doc/build %check # 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 -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=. "$pytest2" test -k "not test_round_trip_direct_type_affinity" +PYTHONPATH=. %{__python2} -m pytest test -k "not test_round_trip_direct_type_affinity" %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=. "$pytest3" test -k "not test_round_trip_direct_type_affinity" +PYTHONPATH=. %{__python3} -m pytest test -k "not test_round_trip_direct_type_affinity" %endif