From 1e1cdcea5abc94aee0b9c7791448a4c770394535 Mon Sep 17 00:00:00 2001 From: johndoknjas Date: Wed, 2 Oct 2024 05:59:04 -0700 Subject: [PATCH] Satisfy black and ruff. --- tests/test_pytype.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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")