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 da778c5 commit 5f45a69Copy full SHA for 5f45a69
test/test_objectid.py
@@ -189,7 +189,8 @@ def generate_objectid_with_timestamp(timestamp):
189
190
for tstamp, exp_datetime_args in TEST_DATA.items():
191
oid = generate_objectid_with_timestamp(tstamp)
192
- if tstamp > 0x7FFFFFFF and sys.maxsize < 2**32:
+ if (not sys.platform.startswith("java") and
193
+ tstamp > 0x7FFFFFFF and sys.maxsize < 2**32):
194
# 32-bit platforms will overflow in datetime.fromtimestamp.
195
with self.assertRaises((OverflowError, ValueError)):
196
oid.generation_time
0 commit comments