Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ignore warnings again
  • Loading branch information
StanFromIreland committed Mar 29, 2025
commit 74d9b7d325b5ef6d51131ed11538ee098fdedbe6
1 change: 1 addition & 0 deletions Lib/test/datetimetester.py
Original file line number Diff line number Diff line change
Expand Up @@ -4707,6 +4707,7 @@ def test_fromisoformat_fractions(self):

self.assertEqual(actual, expected)

@warnings_helper.ignore_warnings(category=DeprecationWarning)
def test_fromisoformat_time_examples(self):
examples = [
('0000', self.theclass(0, 0)),
Expand Down
2 changes: 1 addition & 1 deletion Modules/_datetimemodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ parse_isoformat_time(const char *dtstr, size_t dtlen, int *hour, int *minute,
if (tzinfo_pos + 2 < p_end && tzinfo_pos[2] != ':' && strlen(tzinfo_pos) > 2) {
PyErr_WarnEx(PyExc_DeprecationWarning,
"Support for partially expanded formats is deprecated in "
"accordance with ISO 8601:2 and will be removed in 3.15", 1);
"accordance with ISO 8601:2 and will be removed in 3.15", 2);
}

rv = parse_hh_mm_ss_ff(tzinfo_pos, p_end, &tzhour, &tzminute, &tzsecond,
Expand Down