Skip to content

Commit 9061951

Browse files
Fix tests for mypy>=0.750
python/mypy#7698
1 parent 5095b64 commit 9061951

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/test_pytest_mypy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_mypy_ignore_missings_imports(testdir):
3838
result = testdir.runpytest_subprocess('--mypy')
3939
result.assert_outcomes(failed=1)
4040
result.stdout.fnmatch_lines([
41-
'1: error: Cannot find module named*',
41+
"1: error: Cannot find *module named 'pytest_mypy'",
4242
])
4343
assert result.ret != 0
4444
result = testdir.runpytest_subprocess('--mypy-ignore-missing-imports')

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ deps =
6666
mypy0.72: mypy >= 0.720, < 0.730
6767
mypy0.73: mypy >= 0.730, < 0.740
6868
mypy0.74: mypy >= 0.740, < 0.750
69+
mypy0.75: mypy >= 0.750, < 0.760
70+
mypy0.76: mypy >= 0.760, < 0.770
6971
mypy0.7x: mypy >= 0.700, < 0.800
7072

7173
pytest-cov ~= 2.5.1

0 commit comments

Comments
 (0)