Issue #23517: Skip a datetime test on Windows

The test calls gmtime(-1)/localtime(-1) which is not supported on Windows.
This commit is contained in:
Victor Stinner 2015-09-05 10:50:20 +02:00
parent adfefa527a
commit 8820a350d7
1 changed files with 3 additions and 3 deletions

View File

@ -1865,6 +1865,9 @@ class TestDateTime(TestDate):
self.assertEqual(t, minus_one)
t = fts(-1e-7)
self.assertEqual(t, zero)
t = fts(-1/2**7)
self.assertEqual(t.second, 59)
self.assertEqual(t.microsecond, 992187)
t = fts(1e-7)
self.assertEqual(t, zero)
@ -1879,9 +1882,6 @@ class TestDateTime(TestDate):
t = fts(1/2**7)
self.assertEqual(t.second, 0)
self.assertEqual(t.microsecond, 7813)
t = fts(-1/2**7)
self.assertEqual(t.second, 59)
self.assertEqual(t.microsecond, 992187)
def test_insane_fromtimestamp(self):
# It's possible that some platform maps time_t to double,