We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f37e36 commit 2a35c93Copy full SHA for 2a35c93
Lib/test/datetimetester.py
@@ -1997,8 +1997,9 @@ def test_timestamp_limits(self):
1997
# date 0001-01-01 00:00:00+00:00: timestamp=-62135596800
1998
self.assertEqual(self.theclass.fromtimestamp(min_ts, tz=timezone.utc),
1999
min_dt)
2000
- except OverflowError as exc:
2001
- # the date 0001-01-01 doesn't fit into 32-bit time_t
+ except (OverflowError, OSError) as exc:
+ # the date 0001-01-01 doesn't fit into 32-bit time_t,
2002
+ # or platform doesn't support such very old date
2003
self.skipTest(str(exc))
2004
2005
# maximum timestamp: set seconds to zero to avoid rounding issues
0 commit comments