From 678e50088cdfa29f0f525b035f6207327d0c7e04 Mon Sep 17 00:00:00 2001 From: Christopher Pickering Date: Tue, 21 Sep 2021 08:51:16 +0200 Subject: [PATCH] updated test for py 3.6 --- tests/test_djlint.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/test_djlint.py b/tests/test_djlint.py index 312d49e..15c8556 100644 --- a/tests/test_djlint.py +++ b/tests/test_djlint.py @@ -150,12 +150,18 @@ def test_version(runner: CliRunner) -> None: def test_python_call() -> None: # give up fighting windows lol if sys.platform != "win32": - x = subprocess.run(["python", "-m", "djlint", "-h"], capture_output=True) + x = subprocess.run( + ["python", "-m", "djlint", "-h"], + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + ) assert b"python -m djlint [OPTIONS] SRC ..." in x.stdout assert x.returncode == 0 x = subprocess.run( - ["python", "-m", "djlint", "__init__", "-h"], capture_output=True + ["python", "-m", "djlint", "__init__", "-h"], + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, ) assert b"python -m djlint [OPTIONS] SRC ..." in x.stdout assert x.returncode == 0