File: skip-some-tzname-tests.patch

package info (click to toggle)
pydantic-extra-types 2.10.4-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 560 kB
  • sloc: python: 4,338; makefile: 46
file content (24 lines) | stat: -rw-r--r-- 769 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Colin Watson <cjwatson@debian.org>
Date: Sun, 30 Mar 2025 20:27:42 +0100
Subject: Skip tests for special time zone names Factory and localtime

This needs some further investigation.

Last-Update: 2025-03-30
---
 tests/test_timezone_names.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_timezone_names.py b/tests/test_timezone_names.py
index d980092..b80190f 100644
--- a/tests/test_timezone_names.py
+++ b/tests/test_timezone_names.py
@@ -66,7 +66,7 @@ def test_fail_non_existing_timezone():
 
 
 if has_zone_info:
-    zones = list(available_timezones())
+    zones = [zone for zone in available_timezones() if zone not in {'Factory', 'localtime'}]
     zones.sort()
     zones_bad = [(zone.lower(), zone) for zone in zones]