From 1b9fae900308927e54e46830caf64fb5401354aa Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Mon, 28 Sep 2020 13:46:15 +0100 Subject: [PATCH] I'dve sworn python could do this --- tests/unit_tests/test_math.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit_tests/test_math.py b/tests/unit_tests/test_math.py index 091cc4f4b7..aa6f2d4b0e 100644 --- a/tests/unit_tests/test_math.py +++ b/tests/unit_tests/test_math.py @@ -224,7 +224,7 @@ def test_normal_dist(): for i in range(num_samples): # sample the normal distribution from openmc samples.append(openmc.lib.math.normal_variate(a, b, prn_seed)) - prn_seed += 1 + prn_seed = prn_seed + 1 stat,p = shaprio(samples) assert stat > 0.97