Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 622ce12

Browse files
committed
Merged revisions 87921 via svnmerge from
svn+ssh://[email protected]/python/branches/py3k ........ r87921 | alexander.belopolsky | 2011-01-10 21:22:16 -0500 (Mon, 10 Jan 2011) | 1 line This should fix mktime test on Windows ........
1 parent 4fb96f4 commit 622ce12

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_time.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ def test_mktime(self):
240240
tt = time.localtime(t)
241241
except (OverflowError, ValueError):
242242
pass
243-
self.assertEqual(time.mktime(tt), t)
243+
else:
244+
self.assertEqual(time.mktime(tt), t)
244245

245246
class TestLocale(unittest.TestCase):
246247
def setUp(self):

0 commit comments

Comments
 (0)