Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
oxidase committed Mar 20, 2024
1 parent 307d7c8 commit 2bfd4ed
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions examples/transitions/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import platform
import re
import struct
import subprocess
import sys
import zipfile

Expand Down Expand Up @@ -65,13 +64,13 @@ def test_python_path(name):

def test_python_zip():
zip_name = pathlib.Path(f"deploy_{sys.platform}_{platform.machine()}.zip")
if zip_name.exists():
result = subprocess.run([sys.executable, os.fspath(zip_name.resolve())], stdout=subprocess.PIPE)
assert result.returncode == 0
# if zip_name.exists():
# result = subprocess.run([sys.executable, os.fspath(zip_name.resolve())], stdout=subprocess.PIPE)
# assert result.returncode == 0

stdout = result.stdout.decode()
assert "module 'numpy'" in stdout
assert "/bin/python3" in stdout
# stdout = result.stdout.decode()
# assert "module 'numpy'" in stdout
# assert "/bin/python3" in stdout


if __name__ == "__main__":
Expand Down

0 comments on commit 2bfd4ed

Please sign in to comment.