bpo-33967: Fix wrong use of assertRaises (GH-8306)

(cherry picked from commit 56d8f57b83a37b05a6f2fbc3e141bbc1ba6cb3a2)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
1 file changed