From: Jakub Bogusz Date: Sun, 6 Mar 2022 13:34:10 +0000 (+0100) Subject: - adjusted tests X-Git-Tag: auto/th/python-dateutil-2.8.2-1~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=5949c5eb287100c024da6b25d7ac98aaf5275bfb;p=packages%2Fpython-dateutil.git - adjusted tests --- 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