mirror of https://github.com/scrapy/scrapy.git
Address warnings from the VCS workflow (#7966)
This commit is contained in:
parent
afbd2c9320
commit
c7ee394442
|
|
@ -319,6 +319,9 @@ markers = [
|
|||
]
|
||||
filterwarnings = [
|
||||
"ignore::DeprecationWarning:twisted.web.static",
|
||||
# Jobs that do not report coverage disable it with --no-cov, which pytest-cov
|
||||
# warns about because the coverage options below stay in place.
|
||||
"ignore::pytest_cov.CovDisabledWarning",
|
||||
# Twisted doesn't close failed sockets after CannotListenError: https://github.com/twisted/twisted/issues/6108
|
||||
"ignore:Exception ignored in. <socket\\.socket.*laddr=..0\\.0\\.0\\.0., 0.:pytest.PytestUnraisableExceptionWarning",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
scrapy/core/downloader/handlers/http.py
|
||||
scrapy/extensions/statsmailer.py
|
||||
scrapy/interfaces.py
|
||||
scrapy/mail.py
|
||||
|
|
|
|||
|
|
@ -122,6 +122,11 @@ class TestIPythonShell:
|
|||
@pytest.mark.skipif(
|
||||
sys.platform == "win32", reason="requires a POSIX pseudo-terminal"
|
||||
)
|
||||
# The child of the pseudo-terminal fork execs right away, so the deadlocks
|
||||
# that Python warns about cannot happen.
|
||||
@pytest.mark.filterwarnings(
|
||||
"ignore:.*is multi-threaded, use of forkpty:DeprecationWarning"
|
||||
)
|
||||
@pytest.mark.parametrize(
|
||||
"script",
|
||||
[CONSOLE, CONSOLE_IN_RUNNING_LOOP],
|
||||
|
|
|
|||
Loading…
Reference in New Issue