Skip to content

Commit 9c32868

Browse files
authored
Merge pull request #10465 from jdufresne/mypy-pytest
Install pytest in mypy environment
2 parents 108af9e + 426691d commit 9c32868

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ repos:
4747
additional_dependencies: [
4848
'keyring==23.0.1',
4949
'nox==2021.6.12',
50+
'pytest==6.2.5',
5051
'types-docutils==0.1.8',
5152
'types-setuptools==57.0.2',
5253
'types-six==0.1.9',

news/77150b20-02ed-411a-ad49-90afdc0a4b53.trivial.rst

Whitespace-only changes.

tests/functional/test_requests.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import pytest
22

33

4-
@pytest.mark.skipif
4+
@pytest.mark.network
55
def test_timeout(script):
66
result = script.pip(
77
"--timeout",
8-
"0.01",
8+
"0.001",
99
"install",
1010
"-vvv",
1111
"INITools",
1212
expect_error=True,
1313
)
1414
assert (
15-
"Could not fetch URL https://pypi.org/simple/INITools/: "
16-
"timed out" in result.stdout
17-
)
18-
assert "Could not fetch URL https://pypi.org/simple/: timed out" in result.stdout
15+
"Could not fetch URL https://pypi.org/simple/initools/: "
16+
"connection error: HTTPSConnectionPool(host='pypi.org', port=443): "
17+
"Max retries exceeded with url: /simple/initools/ "
18+
) in result.stdout

0 commit comments

Comments
 (0)