diff --git a/tests/test_pytype.py b/tests/test_pytype.py index 1b525d9f..78cb5fbd 100644 --- a/tests/test_pytype.py +++ b/tests/test_pytype.py @@ -5,8 +5,7 @@ def test_pytype(): result = subprocess.run( ["pytype", "vulture/core.py", "--disable=attribute-error"], - stdout=PIPE, - stderr=PIPE, + capture_output=True, universal_newlines=True, ) assert result.stdout.strip().endswith("Success: no errors found")