Fix test for Python 3.6, refs #368

This commit is contained in:
Simon Willison 2022-01-08 18:37:53 -08:00
commit e0c476bc38

View file

@ -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