Skip to content

Commit

Permalink
Disabling parallelization in classical/case_22_bis [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
micheles committed Oct 9, 2024
1 parent 4eccbc3 commit 0148385
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openquake/calculators/tests/classical_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,11 @@ def test_case_22(self):
def test_case_22_bis(self):
# crossing date line calculation for Alaska
# this also tests full tiling without custom_dir
# NB: requires disabling the parallelization otherwise the
# workers would read the real custom_tmp and not the mocked one
with mock.patch.dict(config.memory, {'pmap_max_gb': 1E-5}), \
mock.patch.dict(config.directory, {'custom_tmp': ''}):
mock.patch.dict(config.directory, {'custom_tmp': ''}), \
mock.patch.dict(os.environ, {'OQ_DISTRIBUTE': 'no'}):
self.assert_curves_ok([
'/hazard_curve-mean-PGA.csv',
'hazard_curve-mean-SA(0.1)',
Expand Down

0 comments on commit 0148385

Please sign in to comment.