guppylang
guppylang copied to clipboard
Snapshot error when parallelizing tests
python_err.py fails with
E AssertionError: value does not match the expected value in snapshot tests/error/comptime_expr_errors/python_err.err
E (run pytest with --snapshot-update to update snapshots)
E assert 'Error: Pytho...vious error\n' == 'Error: Pytho...vious error\n'
E
E Skipping 291 identical leading characters in diff, use -v to show
E <module>
E + import sys;exec(eval(sys.stdin.readline()))
E + ^^^^^
E ZeroDivisionError: division by zero
E
E Guppy compilation failed due to 1 previous error
when running just test (uv run pytest -n auto -x)
Appears to be a problem with parallel testing
Looks to be Python 3.13 specific: https://github.com/pytest-dev/pytest/blob/f3da9187d0b7c2b0a1131ba4002cc55fda34bd5c/testing/code/test_excinfo.py#L379-L381
Still happening in 3.14