From 5209c1101420e435bdd14a166f3e00cd7444c995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 27 Jan 2021 14:49:55 +0100 Subject: [PATCH] Run tests during build Previously, the %check section did nothing: + /usr/bin/python3 setup.py test running test WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox. ... ---------------------------------------------------------------------- Ran 0 tests in 0.000s --- python-argon2-cffi.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-argon2-cffi.spec b/python-argon2-cffi.spec index cf95fe3..2584d3f 100644 --- a/python-argon2-cffi.spec +++ b/python-argon2-cffi.spec @@ -65,8 +65,7 @@ rm -rf html/.{doctrees,buildinfo} %check -export k='not test_argument_ranges' -%{__python3} setup.py test +%pytest %files -n python3-%{pypi_name} @@ -83,6 +82,7 @@ export k='not test_argument_ranges' %changelog * Wed Jan 27 2021 Miro HronĨok - 20.1.0-5 - Stop requiring test dependencies on runtime +- Run tests during build * Wed Jan 27 2021 Fedora Release Engineering - 20.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild