aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2015-11-16 07:21:38 +0000
committerMartin Panter <vadmium+py@gmail.com>2015-11-16 07:21:38 +0000
commit6e0889f0c71eebaf5814f4947b09155baa035188 (patch)
tree5b53d1dc34772b01e401073468c8b9d1cd545fb4 /Lib/test/test_imaplib.py
parentIssue #9051: Added tests for pickling and copying the timezone objects. (diff)
downloadcpython-6e0889f0c71eebaf5814f4947b09155baa035188.tar.gz
cpython-6e0889f0c71eebaf5814f4947b09155baa035188.tar.bz2
cpython-6e0889f0c71eebaf5814f4947b09155baa035188.zip
Issue #20220: Add DST rules to work around glibc quirk
This was triggering intermittent failures in unrelated tests.
Diffstat (limited to 'Lib/test/test_imaplib.py')
-rw-r--r--Lib/test/test_imaplib.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_imaplib.py b/Lib/test/test_imaplib.py
index 96b4f32316c..838411e76fe 100644
--- a/Lib/test/test_imaplib.py
+++ b/Lib/test/test_imaplib.py
@@ -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"'