summaryrefslogtreecommitdiff
path: root/Lib/test/test_datetime.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-09-30 11:17:43 +0000
committerGeorg Brandl <georg@python.org>2006-09-30 11:17:43 +0000
commit6d7c36332f3ad9a2214ef9531ea0d5dc0cb9c765 (patch)
treec3e45c707e65f786055d203b0bb335ddf0c64c1c /Lib/test/test_datetime.py
parent7037745be72691f7d956a5873a4e925b8485c9a9 (diff)
downloadcpython-git-6d7c36332f3ad9a2214ef9531ea0d5dc0cb9c765.tar.gz
Bug #1556784: allow format strings longer than 127 characters in
datetime's strftime function. (backport from rev. 52072)
Diffstat (limited to 'Lib/test/test_datetime.py')
-rw-r--r--Lib/test/test_datetime.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_datetime.py b/Lib/test/test_datetime.py
index 203bea1500..436cfcad75 100644
--- a/Lib/test/test_datetime.py
+++ b/Lib/test/test_datetime.py
@@ -844,6 +844,7 @@ class TestDate(HarmlessMixedComparison):
t = self.theclass(2005, 3, 2)
self.assertEqual(t.strftime("m:%m d:%d y:%y"), "m:03 d:02 y:05")
self.assertEqual(t.strftime(""), "") # SF bug #761337
+ self.assertEqual(t.strftime('x'*1000), 'x'*1000) # SF bug #1556784
self.assertRaises(TypeError, t.strftime) # needs an arg
self.assertRaises(TypeError, t.strftime, "one", "two") # too many args