Skip to content

Commit

Permalink
Changed test_wrong_sum
Browse files Browse the repository at this point in the history
  • Loading branch information
micheles committed Oct 15, 2024
1 parent fb048ee commit 753397d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openquake/hazardlib/tests/pmf_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def test_creation(self):
self.assertEqual(pmf.data, [(0.1, i) for i in range(10)])

def test_wrong_sum(self):
data = [(0.1, i) for i in range(10)]
self.assertRaises(ValueError, PMF, data, 1E-17)
data = [(0.100001, i) for i in range(10)]
self.assertRaises(ValueError, PMF, data, 1E-10)

def test_empty_data(self):
self.assertRaises(ValueError, PMF, [])
Expand Down

0 comments on commit 753397d

Please sign in to comment.