diff --git a/src/cq_cli/cq_cli.py b/src/cq_cli/cq_cli.py index aa7e02e..08dc107 100755 --- a/src/cq_cli/cq_cli.py +++ b/src/cq_cli/cq_cli.py @@ -1,4 +1,10 @@ #!/usr/bin/env python3 + +# surprisingly, this seems to fix issues on macOS - it shouldn't be necessary +# for any python3 installation, but this program fails to run on macOS without +# this import. +from __future__ import print_function + import os import sys import argparse diff --git a/tests/test_cli.py b/tests/test_cli.py index 0a7ed53..58a9d6b 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -11,6 +11,8 @@ def test_no_cli_arguments(): command = ["python", "src/cq_cli/cq_cli.py"] out, err, exitcode = helpers.cli_call(command) + print("Debugging. err: %s;\nout: %s" % (err.decode(), out.decode())) + assert ( out.decode() .split("\n")[0]