summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_time.py
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2013-11-24 22:05:57 (GMT)
committerLarry Hastings <larry@hastings.org>2013-11-24 22:05:57 (GMT)
commit99e101013fa36da37e47a5a18b5a62d621b0efb9 (patch)
treef603004433e242a1eb26573cd9ec54846229d071 /Lib/test/test_time.py
parentd34b620cc3b8b2326b511f98b0ca439ad97b83b8 (diff)
parent2480c2ed593a164fe3a4821a13d5867a0a7102ed (diff)
downloadcpython-99e101013fa36da37e47a5a18b5a62d621b0efb9.zip
cpython-99e101013fa36da37e47a5a18b5a62d621b0efb9.tar.gz
cpython-99e101013fa36da37e47a5a18b5a62d621b0efb9.tar.bz2
Merged 3.4.0b1 release head back into trunk.
Diffstat (limited to 'Lib/test/test_time.py')
-rw-r--r--Lib/test/test_time.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py
index f3643b6..44bcb94 100644
--- a/Lib/test/test_time.py
+++ b/Lib/test/test_time.py
@@ -198,6 +198,10 @@ class TimeTestCase(unittest.TestCase):
with self.assertRaises(ValueError) as e:
time.strptime('', '%D')
self.assertIs(e.exception.__suppress_context__, True)
+ # additional check for IndexError branch (issue #19545)
+ with self.assertRaises(ValueError) as e:
+ time.strptime('19', '%Y %')
+ self.assertIs(e.exception.__suppress_context__, True)
def test_asctime(self):
time.asctime(time.gmtime(self.t))