Skip to content

Commit b5d96f9

Browse files
committed
tests: remove timeout in test_examples.py
1 parent d6ece0b commit b5d96f9

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/test_examples.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@ def test_examples():
99
files = folder.glob("*.py")
1010

1111
for file in files:
12-
try:
13-
result = subprocess.run(
14-
[sys.executable, file], capture_output=True, text=True, timeout=1
15-
)
16-
except subprocess.TimeoutExpired:
17-
if file.name == "export_image_and_display.py":
18-
continue
12+
result = subprocess.run(
13+
[sys.executable, file], capture_output=True, text=True, check=True
14+
)
1915
if result.stderr:
2016
print("Errors:\n", result.stderr)
2117
assert result.returncode == 0, f"example {file} failed"

0 commit comments

Comments
 (0)