Skip to content

Commit 0d4b363

Browse files
committed
datetime: Skip tests that require the host to be in UTC timezone.
Signed-off-by: Damien George <[email protected]>
1 parent 469b81b commit 0d4b363

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python-stdlib/datetime/test_datetime.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2082,9 +2082,11 @@ def test_timetuple00(self):
20822082
with LocalTz("Europe/Rome"):
20832083
self.assertEqual(dt1.timetuple()[:8], (2002, 1, 31, 0, 0, 0, 3, 31))
20842084

2085+
@unittest.skip("broken when running with non-UTC timezone")
20852086
def test_timetuple01(self):
20862087
self.assertEqual(dt27tz2.timetuple()[:8], (2010, 3, 27, 12, 0, 0, 5, 86))
20872088

2089+
@unittest.skip("broken when running with non-UTC timezone")
20882090
def test_timetuple02(self):
20892091
self.assertEqual(dt28tz2.timetuple()[:8], (2010, 3, 28, 12, 0, 0, 6, 87))
20902092

0 commit comments

Comments
 (0)