[packages/python-dateutil] - adjusted tests

qboosh qboosh at pld-linux.org
Sun Mar 6 14:32:10 CET 2022


commit 5949c5eb287100c024da6b25d7ac98aaf5275bfb
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Mar 6 14:34:10 2022 +0100

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

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-dateutil.git/commitdiff/5949c5eb287100c024da6b25d7ac98aaf5275bfb



More information about the pld-cvs-commit mailing list