From 5949c5eb287100c024da6b25d7ac98aaf5275bfb Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 6 Mar 2022 14:34:10 +0100 Subject: [PATCH] - adjusted tests --- python-dateutil.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/python-dateutil.spec b/python-dateutil.spec index b43f4e2..9218b2b 100644 --- a/python-dateutil.spec +++ b/python-dateutil.spec @@ -151,8 +151,13 @@ aktualna w stosunku do systemowych danych zoneinfo. %if %{with tests} # python 2 pytest on builders seem to fail when passing exception containing non-ascii characters -LC_ALL=C.UTF-8 PYTHONIOENCODING=utf8 \ +# test_tz_prop.py fails with non-UTC timezone +LC_ALL=C.UTF-8 \ +PYTHONIOENCODING=utf8 \ +PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ +PYTEST_PLUGINS=pytest_cov.plugin \ PYTHONPATH=$(pwd) \ +TZ=UTC \ %{__python} -m pytest --deselect=dateutil/test/test_isoparser.py::test_iso_raises dateutil/test %endif %endif @@ -161,7 +166,10 @@ PYTHONPATH=$(pwd) \ %py3_build %if %{with tests} +PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ +PYTEST_PLUGINS=pytest_cov.plugin \ PYTHONPATH=$(pwd) \ +TZ=UTC \ %{__python3} -m pytest dateutil/test %endif %endif -- 2.44.0