From e0c476bc380744680c8b7675c24fb0e9f5ec6dcd Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sat, 8 Jan 2022 18:37:53 -0800 Subject: [PATCH] Fix test for Python 3.6, refs #368 --- tests/test_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 336ce7b..7afe9ca 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -2024,7 +2024,7 @@ def test_integer_overflow_error(tmpdir): def test_python_dash_m(): "Tool can be run using python -m sqlite_utils" result = subprocess.run( - [sys.executable, "-m", "sqlite_utils", "--help"], capture_output=True + [sys.executable, "-m", "sqlite_utils", "--help"], stdout=subprocess.PIPE ) assert result.returncode == 0 assert b"Commands for interacting with a SQLite database" in result.stdout