From 26fb754d8f6bf90542970cee1f10151413f266db04069c7ac0770e34876edc5e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 8 Nov 2021 15:38:39 +0000 Subject: [PATCH] Accepting request 930192 from home:huizhizhao:branches:devel:languages:python - Disable test when building python2 package since it only works with python3 OBS-URL: https://build.opensuse.org/request/show/930192 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-CommonMark?expand=0&rev=28 --- python-CommonMark.changes | 5 +++++ python-CommonMark.spec | 2 ++ 2 files changed, 7 insertions(+) diff --git a/python-CommonMark.changes b/python-CommonMark.changes index 3d382ee..f74d098 100644 --- a/python-CommonMark.changes +++ b/python-CommonMark.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Nov 8 08:56:01 UTC 2021 - Hui-Zhi Zhao + +- Remove test on python2 since it only works with python3 + ------------------------------------------------------------------- Thu Sep 2 11:27:12 UTC 2021 - pgajdos@suse.com diff --git a/python-CommonMark.spec b/python-CommonMark.spec index a92a9fa..716cc7b 100644 --- a/python-CommonMark.spec +++ b/python-CommonMark.spec @@ -65,9 +65,11 @@ CommonMark specification, using only native modules. %check export LANG=en_US.UTF-8 +%if "%{python_flavor}" == "python3" %pyunittest commonmark/tests/*.py # On python2 we error out on unicode issues PYTHONPATH=%{buildroot}%{python3_sitelib} python3 commonmark/tests/run_spec_tests.py +%endif %post %python_install_alternative cmark