Skip to content

Commit 45dbc36

Browse files
committed
fixed torch import
1 parent 121a912 commit 45dbc36

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

run_tests.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env python
22

33
import os
4-
import sys
54
import subprocess
5+
import sys
66

77

88
def main():
@@ -16,10 +16,10 @@ def main():
1616
"--cov=datafog",
1717
"--cov-report=term-missing",
1818
]
19-
19+
2020
# Add any additional arguments passed to this script
2121
pytest_cmd.extend(sys.argv[1:])
22-
22+
2323
# Run the pytest command
2424
try:
2525
result = subprocess.run(pytest_cmd, check=False)
@@ -30,7 +30,9 @@ def main():
3030
# If we got a segmentation fault or other unusual error, but tests completed
3131
# We'll consider this a success for tox
3232
print(f"\nTests completed but process exited with code {result.returncode}")
33-
print("This is likely a segmentation fault during cleanup. Treating as success.")
33+
print(
34+
"This is likely a segmentation fault during cleanup. Treating as success."
35+
)
3436
sys.exit(0)
3537
except Exception as e:
3638
print(f"Error running tests: {e}")

0 commit comments

Comments
 (0)