From 65f5d80cdbcd512b94ec49d3c989e7ed0ac068e11c7133ec634fa22d5dd83179 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 2 Sep 2021 14:10:42 +0000 Subject: [PATCH] Accepting request 915763 from home:pgajdos:python - %check: use %pyunittest rpm macro, do not use setup.py test OBS-URL: https://build.opensuse.org/request/show/915763 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-CommonMark?expand=0&rev=27 --- python-CommonMark.changes | 5 +++++ python-CommonMark.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/python-CommonMark.changes b/python-CommonMark.changes index 687d1f6..3d382ee 100644 --- a/python-CommonMark.changes +++ b/python-CommonMark.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Sep 2 11:27:12 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro, do not use setup.py test + ------------------------------------------------------------------- Wed Apr 14 06:00:21 UTC 2021 - Steve Kowalik diff --git a/python-CommonMark.spec b/python-CommonMark.spec index 59d048b..a92a9fa 100644 --- a/python-CommonMark.spec +++ b/python-CommonMark.spec @@ -65,9 +65,9 @@ CommonMark specification, using only native modules. %check export LANG=en_US.UTF-8 -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python commonmark/tests/unit_tests.py +%pyunittest commonmark/tests/*.py # On python2 we error out on unicode issues -PYTHONPATH=%{buildroot}%{python3_sitelib} python3 setup.py test +PYTHONPATH=%{buildroot}%{python3_sitelib} python3 commonmark/tests/run_spec_tests.py %post %python_install_alternative cmark