diff options
author | Daniel Hahler <git@thequod.de> | 2020-02-01 22:30:34 +0100 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2020-02-01 23:48:57 +0100 |
commit | 2681b0aed7b1c92e6971bbbff527321958d6e627 (patch) | |
tree | fc7c10b62a7ed91f6a8874bf4af10b44c23f8852 /testing/test_pytester.py | |
parent | b10ab0211c789ea28bb372fe93fffeeb8cd338ad (diff) | |
download | pytest-2681b0aed7b1c92e6971bbbff527321958d6e627.tar.gz |
typing: pytester: LineMatcher
Diffstat (limited to 'testing/test_pytester.py')
-rw-r--r-- | testing/test_pytester.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/testing/test_pytester.py b/testing/test_pytester.py index da5fb99a1..a6901e967 100644 --- a/testing/test_pytester.py +++ b/testing/test_pytester.py @@ -462,20 +462,20 @@ def test_linematcher_with_nonlist() -> None: lm = LineMatcher([]) with pytest.raises(TypeError, match="invalid type for lines2: set"): - lm.fnmatch_lines(set()) + lm.fnmatch_lines(set()) # type: ignore[arg-type] # noqa: F821 with pytest.raises(TypeError, match="invalid type for lines2: dict"): - lm.fnmatch_lines({}) + lm.fnmatch_lines({}) # type: ignore[arg-type] # noqa: F821 with pytest.raises(TypeError, match="invalid type for lines2: set"): - lm.re_match_lines(set()) + lm.re_match_lines(set()) # type: ignore[arg-type] # noqa: F821 with pytest.raises(TypeError, match="invalid type for lines2: dict"): - lm.re_match_lines({}) + lm.re_match_lines({}) # type: ignore[arg-type] # noqa: F821 with pytest.raises(TypeError, match="invalid type for lines2: Source"): - lm.fnmatch_lines(Source()) + lm.fnmatch_lines(Source()) # type: ignore[arg-type] # noqa: F821 lm.fnmatch_lines([]) lm.fnmatch_lines(()) lm.fnmatch_lines("") - assert lm._getlines({}) == {} - assert lm._getlines(set()) == set() + assert lm._getlines({}) == {} # type: ignore[arg-type,comparison-overlap] # noqa: F821 + assert lm._getlines(set()) == set() # type: ignore[arg-type,comparison-overlap] # noqa: F821 assert lm._getlines(Source()) == [] assert lm._getlines(Source("pass\npass")) == ["pass", "pass"] |