]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-53203: Improve tests for strptime() (GH-125090)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 8 Oct 2024 08:40:02 +0000 (11:40 +0300)
committerGitHub <noreply@github.com>
Tue, 8 Oct 2024 08:40:02 +0000 (08:40 +0000)
commit19984fe024bfd90649f1c36b78c9abf3ed72b27d
tree71518f45b3db2d8ccaaaffb03151c27006c89839
parent7c4b6a68f263320a2dd19cd5ff63b35c964b1fa8
gh-53203: Improve tests for strptime() (GH-125090)

Run them with different locales and different date and time.

Add the @run_with_locales() decorator to run the test with multiple
locales.

Improve the run_with_locale() context manager/decorator -- it now
catches only expected exceptions and reports the test as skipped if no
appropriate locale is available.
Lib/test/pickletester.py
Lib/test/support/__init__.py
Lib/test/test_codecs.py
Lib/test/test_decimal.py
Lib/test/test_float.py
Lib/test/test_imaplib.py
Lib/test/test_str.py
Lib/test/test_strptime.py
Lib/test/test_time.py
Lib/test/test_types.py