[3.13] gh-128770: raise warnings as errors in test suite - except for test_socket which still logs warnings, and internal test warnings that are now logged (#131802)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
(cherry picked from commit 8a00c9a4d2)
This commit is contained in:
Thomas Grainger 2025-03-29 19:21:33 +00:00 committed by GitHub
parent 5c2c817723
commit 07d4c7e7db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 234 additions and 138 deletions

View file

@ -9,8 +9,10 @@ import unittest
from test import support
from test.support.testcase import FloatsAreIdenticalMixin
from test.test_grammar import (VALID_UNDERSCORE_LITERALS,
INVALID_UNDERSCORE_LITERALS)
from test.support.numbers import (
VALID_UNDERSCORE_LITERALS,
INVALID_UNDERSCORE_LITERALS,
)
from math import isinf, isnan, copysign, ldexp
import math