Merge branch 'pytest-dev:main' into issue_11354-Fixing-docs-for-lfnf
This commit is contained in:
commit
722b4877da
|
@ -15,7 +15,7 @@ from py.path import local
|
|||
def ignore_encoding_warning():
|
||||
with warnings.catch_warnings():
|
||||
with contextlib.suppress(NameError): # new in 3.10
|
||||
warnings.simplefilter("ignore", EncodingWarning)
|
||||
warnings.simplefilter("ignore", EncodingWarning) # type: ignore [name-defined] # noqa: F821
|
||||
yield
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue