Skip to content

Commit ae46d03

Browse files
authored
Merge pull request #1133 from python-trio/dependabot/pip/pytest-5.0.0
Bump pytest from 4.6.3 to 5.0.0
2 parents fd153f2 + e4cc68c commit ae46d03

File tree

6 files changed

+14
-7
lines changed

6 files changed

+14
-7
lines changed

ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ else
120120

121121
INSTALLDIR=$(python -c "import os, trio; print(os.path.dirname(trio.__file__))")
122122
cp ../setup.cfg $INSTALLDIR
123-
pytest -W error -ra --junitxml=../test-results.xml --run-slow --faulthandler-timeout=60 ${INSTALLDIR} --cov="$INSTALLDIR" --cov-config=../.coveragerc --verbose
123+
pytest -W error -r a --junitxml=../test-results.xml --run-slow ${INSTALLDIR} --cov="$INSTALLDIR" --cov-config=../.coveragerc --verbose
124124

125125
# Disable coverage on 3.8 until we run 3.8 on Windows CI too
126126
# https://github.com/python-trio/trio/pull/784#issuecomment-446438407

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[tool:pytest]
22
xfail_strict = true
3+
faulthandler_timeout=60

test-requirements.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
# For tests
2-
pytest >= 3.3 # for catchlog fixture
2+
pytest >= 5.0 # for faulthandler in core
33
pytest-cov >= 2.6.0
44
ipython # for the IPython traceback integration tests
55
pyOpenSSL # for the ssl tests
66
trustme # for the ssl tests
7-
pytest-faulthandler
87
pylint # for pylint finding all symbols tests
98
jedi # for jedi code completion tests
109

test-requirements.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ pylint==2.3.1
4444
pyopenssl==19.0.0
4545
pyparsing==2.4.0 # via packaging
4646
pytest-cov==2.7.1
47-
pytest-faulthandler==1.6.0
48-
pytest==4.6.3
49-
six==1.12.0 # via astroid, cryptography, packaging, prompt-toolkit, pyopenssl, pytest, traitlets
47+
pytest==5.0.0
48+
six==1.12.0 # via astroid, cryptography, packaging, prompt-toolkit, pyopenssl, traitlets
5049
sniffio==1.1.0
5150
sortedcontainers==2.1.0
5251
traitlets==4.3.2 # via ipython

trio/tests/test_exports.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ def public_namespaces(module):
5555
sys.version_info.releaselevel == "alpha",
5656
reason="skip static introspection tools on Python dev/alpha releases",
5757
)
58+
@pytest.mark.filterwarnings(
59+
# https://github.com/PyCQA/astroid/issues/681
60+
"ignore:the imp module is deprecated.*:DeprecationWarning"
61+
)
62+
@pytest.mark.filterwarnings(
63+
# Same as above, but on Python 3.5
64+
"ignore:the imp module is deprecated.*:PendingDeprecationWarning"
65+
)
5866
@pytest.mark.parametrize("modname", NAMESPACES)
5967
@pytest.mark.parametrize("tool", ["pylint", "jedi"])
6068
def test_static_tool_sees_all_symbols(tool, modname):

trio/tests/test_windows_pipes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async def write_forever():
9393
with pytest.raises(_core.ClosedResourceError) as excinfo:
9494
while True:
9595
await w.send_all(b"x" * 4096)
96-
assert "another task" in str(excinfo)
96+
assert "another task" in str(excinfo.value)
9797

9898
nursery.start_soon(write_forever)
9999
await wait_all_tasks_blocked(0.1)

0 commit comments

Comments
 (0)