From: Daniele Varrazzo Date: Wed, 14 Sep 2022 11:33:23 +0000 (+0100) Subject: test: add bad timezone to simulate a reported timezone issue X-Git-Tag: 3.1.2~9^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7b1da242e3138abc43e8d99b91153c0bfaa8799;p=thirdparty%2Fpsycopg.git test: add bad timezone to simulate a reported timezone issue The bad timezone causes OSError on Windows. See #371 --- diff --git a/tests/types/test_datetime.py b/tests/types/test_datetime.py index babe9ef14..11fe4932c 100644 --- a/tests/types/test_datetime.py +++ b/tests/types/test_datetime.py @@ -390,6 +390,7 @@ class TestDateTimeTz: ("Europe/Rome", "2000-7-1", 7200), ("Europe/Rome", "1000-1-1", 2996), pytest.param("NOSUCH0", "2000-1-1", 0, marks=crdb_skip_invalid_tz), + pytest.param("0", "2000-1-1", 0, marks=crdb_skip_invalid_tz), ], ) @pytest.mark.parametrize("fmt_out", pq.Format)