Skip to content

Commit

Permalink
I think that fixes the problem w/ cicd?
Browse files Browse the repository at this point in the history
  • Loading branch information
jessekrubin committed Jan 18, 2024
1 parent 1a800f5 commit 55d3653
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/tests/test_run.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import subprocess as sp
import sys
import ry


def test_python_version():
completed_proc = sp.run(["python", "--version"], capture_output=True)
python_exe = sys.executable
completed_proc = sp.run([python_exe, "--version"], capture_output=True)
assert completed_proc.returncode == 0
print(completed_proc)
assert "python" in str(completed_proc.stdout).lower()

thing = ry.run(
"python",
python_exe,
"--version",
# capture_output=True,
)
Expand All @@ -21,7 +23,7 @@ def test_binary_output():
cproc = sp.run(
[
# write out some weird binary data
"python",
sys.executable,
"-c",
"import sys; sys.stdout.buffer.write(b'\\x00\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\x09\\x0a\\x0b\\x0c\\x0d\\x0e\\x0f')",
],
Expand Down

0 comments on commit 55d3653

Please sign in to comment.