15
0

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
This commit is contained in:
2021-09-02 14:10:42 +00:00
committed by Git OBS Bridge
parent 3d47c6a786
commit 65f5d80cdb
2 changed files with 7 additions and 2 deletions

View File

@@ -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