-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply PR feedback (includes defining
self.noqa_lines
in the constru…
…ctor and checking whether the pytype exit code is 0).
- Loading branch information
1 parent
3074a3a
commit 9415be7
Showing
2 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
import subprocess | ||
import sys | ||
|
||
import pytest | ||
|
||
|
||
@pytest.mark.skipif( | ||
sys.version_info >= (3, 13), reason="Need python < 3.13 for pytype" | ||
sys.version_info >= (3, 13), reason="needs Python < 3.13 for pytype" | ||
) | ||
def test_pytype(): | ||
result = subprocess.run( | ||
["pytype", "vulture/core.py", "--disable=attribute-error"], | ||
["pytype", "vulture/core.py"], | ||
capture_output=True, | ||
text=True, | ||
check=True, | ||
) | ||
assert result.stdout.strip().endswith("Success: no errors found") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters