]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-119949: Refactor test_exc() helper in test_format.py (GH-135452) (GH-150329)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 8 Jun 2026 18:01:52 +0000 (20:01 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Jun 2026 18:01:52 +0000 (18:01 +0000)
commite795bd4be7c0304b678beb5af7dc3e634af818ea
treece903b01995a8f2ba756a96ac7196d19f45b8f74
parent99979753b38f64a6cdbe37990eaaeb2af440e140
[3.15] gh-119949: Refactor test_exc() helper in test_format.py (GH-135452) (GH-150329)

Use assertRaisesRegex() context and fix
https://github.com/python/cpython/pull/119781#pullrequestreview-2088240959

(cherry picked from commit 0851700a9d99ca4bebd8d5f9d73c8c9ab1084405)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Lib/test/test_format.py