Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use one thread in test_restart_track to avoid sporadic UnicodeDecodeE…
…rror
  • Loading branch information
paulromano committed Jun 21, 2024
commit 3d4ce8d11ade6d18790bff6e3f1131ac13457c63
2 changes: 1 addition & 1 deletion tests/unit_tests/test_tracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def test_restart_track(run_in_tmpdir, sphere_model):

# generate lost particle files
with pytest.raises(RuntimeError, match='Maximum number of lost particles has been reached.'):
sphere_model.run(output=False)
sphere_model.run(output=False, threads=1)
Comment thread
paulromano marked this conversation as resolved.
Resolved

lost_particle_files = list(Path.cwd().glob('particle_*.h5'))
assert len(lost_particle_files) > 0
Expand Down