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 a23c23f commit 6840090Copy full SHA for 6840090
1 file changed
Lib/test/test_time.py
@@ -1019,10 +1019,11 @@ def test_FromSecondsObject_float_overflow_message(self):
1019
from _testinternalcapi import _PyTime_FromSecondsObject
1020
for value in (float(PyTime_MAX), float(PyTime_MIN)):
1021
for time_rnd, _ in ROUNDING_MODES:
1022
- with self.assertRaisesRegex(
1023
- OverflowError,
1024
- "timestamp out of range for C PyTime_t"):
1025
- _PyTime_FromSecondsObject(value, time_rnd)
+ with self.subTest(value=value, time_rnd=time_rnd):
+ with self.assertRaisesRegex(
+ OverflowError,
+ "timestamp out of range for C PyTime_t"):
1026
+ _PyTime_FromSecondsObject(value, time_rnd)
1027
1028
def test_AsSecondsDouble(self):
1029
from _testcapi import PyTime_AsSecondsDouble
0 commit comments