Skip to content

Commit

Permalink
Fix an expected error message, avoiding to use a unix-like path that …
Browse files Browse the repository at this point in the history
…would break on windows
  • Loading branch information
ptormene committed Aug 24, 2023
1 parent 265f674 commit 59199d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openquake/calculators/tests/event_based_risk_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ def test_case_1_missing_occupancy(self):
with self.assertRaises(InvalidFile) as ctx:
self.run_calc(case_1.__file__, 'job_missing_occupancy.ini')
self.assertIn('Missing tag "occupancy" in', str(ctx.exception))
self.assertIn('qa_tests_data/event_based_risk/case_1/exposure.csv',
str(ctx.exception))
self.assertIn('exposure.csv', str(ctx.exception))

def test_case_1_ins(self):
# no aggregation
Expand Down

0 comments on commit 59199d2

Please sign in to comment.