Skip to content

Commit

Permalink
test AssertionError rather than return bogus results
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdcs committed Apr 26, 2023
1 parent 48ad803 commit 9f96f48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion colour/colorimetry/tests/test_blackbody.py
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,8 @@ def test_nan_planck_law(self):

cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
planck_law(cases, cases)
with self.assertRaises(AssertionError):
planck_law(cases, cases)


class TestSdBlackbody(unittest.TestCase):
Expand Down

0 comments on commit 9f96f48

Please sign in to comment.