Skip to content

Commit 74d9b7d

Browse files
Ignore warnings again
1 parent 4e3effc commit 74d9b7d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Lib/test/datetimetester.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4707,6 +4707,7 @@ def test_fromisoformat_fractions(self):
47074707

47084708
self.assertEqual(actual, expected)
47094709

4710+
@warnings_helper.ignore_warnings(category=DeprecationWarning)
47104711
def test_fromisoformat_time_examples(self):
47114712
examples = [
47124713
('0000', self.theclass(0, 0)),

Modules/_datetimemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ parse_isoformat_time(const char *dtstr, size_t dtlen, int *hour, int *minute,
11351135
if (tzinfo_pos + 2 < p_end && tzinfo_pos[2] != ':' && strlen(tzinfo_pos) > 2) {
11361136
PyErr_WarnEx(PyExc_DeprecationWarning,
11371137
"Support for partially expanded formats is deprecated in "
1138-
"accordance with ISO 8601:2 and will be removed in 3.15", 1);
1138+
"accordance with ISO 8601:2 and will be removed in 3.15", 2);
11391139
}
11401140

11411141
rv = parse_hh_mm_ss_ff(tzinfo_pos, p_end, &tzhour, &tzminute, &tzsecond,

0 commit comments

Comments
 (0)