mirror of https://github.com/python/cpython
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:
parent
adfefa527a
commit
8820a350d7
|
@ -1865,6 +1865,9 @@ class TestDateTime(TestDate):
|
||||||
self.assertEqual(t, minus_one)
|
self.assertEqual(t, minus_one)
|
||||||
t = fts(-1e-7)
|
t = fts(-1e-7)
|
||||||
self.assertEqual(t, zero)
|
self.assertEqual(t, zero)
|
||||||
|
t = fts(-1/2**7)
|
||||||
|
self.assertEqual(t.second, 59)
|
||||||
|
self.assertEqual(t.microsecond, 992187)
|
||||||
|
|
||||||
t = fts(1e-7)
|
t = fts(1e-7)
|
||||||
self.assertEqual(t, zero)
|
self.assertEqual(t, zero)
|
||||||
|
@ -1879,9 +1882,6 @@ class TestDateTime(TestDate):
|
||||||
t = fts(1/2**7)
|
t = fts(1/2**7)
|
||||||
self.assertEqual(t.second, 0)
|
self.assertEqual(t.second, 0)
|
||||||
self.assertEqual(t.microsecond, 7813)
|
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):
|
def test_insane_fromtimestamp(self):
|
||||||
# It's possible that some platform maps time_t to double,
|
# It's possible that some platform maps time_t to double,
|
||||||
|
|
Loading…
Reference in New Issue