cpython: 2771f7e96a52 (original) (raw)
Mercurial > cpython
changeset 73282:2771f7e96a52
Add temporary tests to troubleshoot issue #13309 on Gentoo buildbot. [#13309]
Florent Xicluna florent.xicluna@gmail.com | |
---|---|
date | Tue, 01 Nov 2011 15:12:34 +0100 |
parents | 55a3b563f0db |
children | bb0ae7df08f8 |
files | Lib/test/test_time.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-)[+] [-] Lib/test/test_time.py 4 |
line wrap: on
line diff
--- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -161,6 +161,10 @@ class TimeTestCase(unittest.TestCase): self.fail("conversion specifier %r failed with '%s' input." % (format, strf_output))
XXX Temporary tests to troubleshoot issue #13309 on buildbots
- test_aaa_strptime = test_strptime
- test_bbb_strptime = test_strptime
+ def test_strptime_bytes(self): # Make sure only strings are accepted as arguments to strptime. self.assertRaises(TypeError, time.strptime, b'2009', "%Y")