mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Update more usage of assertEqual
This commit is contained in:
parent
e9f0311a0f
commit
6f87a08aa7
3 changed files with 8 additions and 8 deletions
|
|
@ -189,15 +189,15 @@ class Y1900Tests(unittest.TestCase):
|
|||
|
||||
@unittest.skipIf(sys.platform == "win32", "Doesn't apply on Windows")
|
||||
def test_y_before_1900_nonwin(self):
|
||||
self.assertEquals(
|
||||
self.assertEqual(
|
||||
time.strftime("%y", (1899, 1, 1, 0, 0, 0, 0, 0, 0)), "99")
|
||||
|
||||
def test_y_1900(self):
|
||||
self.assertEquals(
|
||||
self.assertEqual(
|
||||
time.strftime("%y", (1900, 1, 1, 0, 0, 0, 0, 0, 0)), "00")
|
||||
|
||||
def test_y_after_1900(self):
|
||||
self.assertEquals(
|
||||
self.assertEqual(
|
||||
time.strftime("%y", (2013, 1, 1, 0, 0, 0, 0, 0, 0)), "13")
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue