Skip to content

Commit

Permalink
attempt to fix build failure on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
justbuchanan committed Oct 24, 2023
1 parent 61869af commit 65dc1be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cq_cli/cq_cli.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 65dc1be

Please sign in to comment.