diff options
author | Ran Benita <ran@unusedvar.com> | 2020-07-10 09:44:14 +0300 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2020-07-10 13:08:56 +0300 |
commit | a2f021b6f3618f30d0cd5604797ce5069353d864 (patch) | |
tree | e7e646c8eaf22d0958680687e18bf2b64b42e712 /testing/test_pytester.py | |
parent | fc702ab7e41a583b0b0658aa2bf7c962a19d3fe7 (diff) | |
download | pytest-a2f021b6f3618f30d0cd5604797ce5069353d864.tar.gz |
Remove no longer needed `noqa: F821` uses
Not needed since pyflakes 2.2.0.
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 d0afb40b0..46f3e1cab 100644 --- a/testing/test_pytester.py +++ b/testing/test_pytester.py @@ -484,20 +484,20 @@ def test_linematcher_with_nonlist() -> None: lm = LineMatcher([]) with pytest.raises(TypeError, match="invalid type for lines2: set"): - lm.fnmatch_lines(set()) # type: ignore[arg-type] # noqa: F821 + lm.fnmatch_lines(set()) # type: ignore[arg-type] with pytest.raises(TypeError, match="invalid type for lines2: dict"): - lm.fnmatch_lines({}) # type: ignore[arg-type] # noqa: F821 + lm.fnmatch_lines({}) # type: ignore[arg-type] with pytest.raises(TypeError, match="invalid type for lines2: set"): - lm.re_match_lines(set()) # type: ignore[arg-type] # noqa: F821 + lm.re_match_lines(set()) # type: ignore[arg-type] with pytest.raises(TypeError, match="invalid type for lines2: dict"): - lm.re_match_lines({}) # type: ignore[arg-type] # noqa: F821 + lm.re_match_lines({}) # type: ignore[arg-type] with pytest.raises(TypeError, match="invalid type for lines2: Source"): - lm.fnmatch_lines(Source()) # type: ignore[arg-type] # noqa: F821 + lm.fnmatch_lines(Source()) # type: ignore[arg-type] lm.fnmatch_lines([]) lm.fnmatch_lines(()) lm.fnmatch_lines("") - 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({}) == {} # type: ignore[arg-type,comparison-overlap] + assert lm._getlines(set()) == set() # type: ignore[arg-type,comparison-overlap] assert lm._getlines(Source()) == [] assert lm._getlines(Source("pass\npass")) == ["pass", "pass"] |