Skip to content

Commit

Permalink
Merge branch 'develop' into frames_values_incompatability_parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
talagayev authored Nov 27, 2024
2 parents 5e0b3c1 + abc9806 commit ba62187
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions testsuite/MDAnalysisTests/analysis/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,16 @@ def test_frame_values_incompatability(u):
step=step
)

def test_n_workers_conflict_raises_value_error(u):
backend_instance = ManyWorkersBackend(n_workers=4)

with pytest.raises(ValueError, match="n_workers specified twice"):
FrameAnalysis(u.trajectory).run(
backend=backend_instance,
n_workers=1,
unsupported_backend=True
)

@pytest.mark.parametrize('run_class,backend,n_workers', [
(Parallelizable, 'not-existing-backend', 2),
(Parallelizable, 'not-existing-backend', None),
Expand Down

0 comments on commit ba62187

Please sign in to comment.