Skip to content

Commit a465e2c

Browse files
authored
Merge pull request scipy#23153 from crusaderky/tst-optimize-mem
TST: optimize: cap pytest-run-parallel memory usage
2 parents d3d081d + ceb92f9 commit a465e2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scipy/optimize/tests/test_least_squares.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ def test_convergence_with_only_one_tolerance_enabled(self):
400400
method=self.method)
401401
assert_allclose(res.x, x_opt)
402402

403+
@pytest.mark.parallel_threads(4) # 0.4 GiB per thread RAM usage
403404
@pytest.mark.fail_slow(5.0)
404405
def test_workers(self):
405406
serial = least_squares(fun_trivial, 2.0, method=self.method)

0 commit comments

Comments
 (0)