mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
Fix DeprecationWarnings in test suite
This commit is contained in:
parent
17c93260a6
commit
492b9893e1
4 changed files with 23 additions and 23 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")
|
||||
|
||||
def test_main():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue