Notification time stamped 2022-09-01 02:28:36 UTC
From b24a45333f52f763cb399fa376fef3ef65bcc0e2 Mon Sep 17 00:00:00 2001 From: Miro Hrončok miro@hroncok.cz Date: Mar 30 2022 11:17:41 +0000 Subject: Deselect 3 failing example testes on Python 3.11+
---
diff --git a/26.patch b/26.patch new file mode 100644 index 0000000..abf1638 --- /dev/null +++ b/26.patch @@ -0,0 +1,22 @@ +From 4c43aa26bccd749027511c54a44a75df5114e48a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= miro@hroncok.cz +Date: Wed, 30 Mar 2022 13:15:39 +0200 +Subject: [PATCH] tox: Allow passing positional arguments to pytest + +--- + tox.ini | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tox.ini b/tox.ini +index 4179f8a..bebb6eb 100644 +--- a/tox.ini ++++ b/tox.ini +@@ -2,7 +2,7 @@ + envlist = py{36,37,38,39,310} + + [testenv] +-commands = pytest ++commands = pytest {posargs} + extras = tests + passenv = + STACK_DATA_SLOW_TESTS diff --git a/python-stack-data.spec b/python-stack-data.spec index ff3c2b9..5cd3dea 100644 --- a/python-stack-data.spec +++ b/python-stack-data.spec @@ -7,6 +7,9 @@ License: MIT URL: http://github.com/alexmojaki/stack_data Source0: %{pypi_source stack_data}
+# tox: Allow passing positional arguments to pytest +Patch: https://github.com/alexmojaki/stack_data/pull/26.patch + BuildArch: noarch BuildRequires: python3-devel # Extra test dependency @@ -44,7 +47,12 @@ Summary: %{summary}
%check +%if v"%{python3_version}" >= v"3.11" +# https://github.com/alexmojaki/stack_data/issues/25 +%tox -- -- -k "not _example" +%else %tox +%endif
%files -n python3-stack-data -f %{pyproject_files}
https://src.fedoraproject.org/rpms/python-stack-data/c/b24a45333f52f763cb399...
scm-commits@lists.fedoraproject.org