Skip to content

Commit 7c73213

Browse files
scripts/test.py: on Pyodide, exit with error if pytest fails.
In test() we now check that pytest.main() returns zero.
1 parent 4c45441 commit 7c73213

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,8 @@ def getmtime(path):
12971297
for arg in args:
12981298
log(f' {arg!r}')
12991299
import pytest
1300-
pytest.main(args)
1300+
e = pytest.main(args)
1301+
assert e == 0, f'pytest.main() failed: {e=}'
13011302
return
13021303

13031304
if venv >= 2:

0 commit comments

Comments
 (0)