]> granicus.if.org Git - python/commitdiff
Issue #20220: Add DST rules to work around glibc quirk
authorMartin Panter <vadmium+py@gmail.com>
Mon, 16 Nov 2015 07:21:38 +0000 (07:21 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Mon, 16 Nov 2015 07:21:38 +0000 (07:21 +0000)
This was triggering intermittent failures in unrelated tests.

Lib/test/test_imaplib.py

index 96b4f32316c713bad0d478edc5f49eb806a1901d..838411e76fe6919b0bc3ce7611fe95c04abe7564 100644 (file)
@@ -55,7 +55,9 @@ class TestImaplib(unittest.TestCase):
                 '"18-May-2033 05:33:20 +0200"']
 
     @run_with_locale('LC_ALL', 'de_DE', 'fr_FR')
-    @run_with_tz('STD-1DST')
+    # DST rules included to work around quirk where the Gnu C library may not
+    # otherwise restore the previous time zone
+    @run_with_tz('STD-1DST,M3.2.0,M11.1.0')
     def test_Time2Internaldate(self):
         expected = '"18-May-2033 05:33:20 +0200"'