cpython: 5b1e1967ea9d (original) (raw)

--- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -161,10 +161,6 @@ class TimeTestCase(unittest.TestCase): self.fail("conversion specifier %r failed with '%s' input." % (format, strf_output))

- def test_strptime_bytes(self): # Make sure only strings are accepted as arguments to strptime. self.assertRaises(TypeError, time.strptime, b'2009', "%Y") @@ -301,7 +297,8 @@ class TimeTestCase(unittest.TestCase): t1 = time.mktime(lt1) self.assertAlmostEqual(t1, t0, delta=0.2)

@@ -310,8 +307,9 @@ class TimeTestCase(unittest.TestCase): pass else: self.assertEqual(time.mktime(tt), t)

@@ -319,6 +317,10 @@ class TimeTestCase(unittest.TestCase): time.mktime((-1, 1, 1, 0, 0, 0, -1, -1, -1)) except OverflowError: pass

class TestLocale(unittest.TestCase):