diff --git a/tests/test_pytype.py b/tests/test_pytype.py index 6c38b8f6..5ac86a78 100644 --- a/tests/test_pytype.py +++ b/tests/test_pytype.py @@ -1,9 +1,10 @@ import subprocess -from subprocess import PIPE + def test_pytype(): result = subprocess.run( - ['pytype', 'vulture/core.py', '--disable=attribute-error'], - stdout=PIPE, stderr=PIPE, universal_newlines=True + ["pytype", "vulture/core.py", "--disable=attribute-error"], + capture_output=True, + text=True, ) - assert result.stdout.strip().endswith('Success: no errors found') \ No newline at end of file + assert result.stdout.strip().endswith("Success: no errors found")