Skip to content

Commit 4811c1e

Browse files
committed
Ignore deprecation warning in tests
1 parent 50b7451 commit 4811c1e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

distutils/log.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def set_verbosity(v):
4040

4141

4242
class Log(logging.Logger):
43-
"""distutils.log.Logger is deprecated, please use an alternative from `logging`."""
43+
"""distutils.log.Log is deprecated, please use an alternative from `logging`."""
4444

4545
def __init__(self, threshold=WARN):
4646
warnings.warn(Log.__doc__) # avoid DeprecationWarning to ensure warn is shown

pytest.ini

+3
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ filterwarnings=
2424

2525
# suppress warnings in deprecated compilers
2626
ignore:(bcpp|msvc9?)compiler is deprecated
27+
28+
# suppress well know deprecation warning
29+
ignore:distutils.log.Log is deprecated

0 commit comments

Comments
 (0)