diff --git a/news/test.rst b/news/test.rst index 225407f..dcd07f1 100644 --- a/news/test.rst +++ b/news/test.rst @@ -16,7 +16,7 @@ **Fixed:** -* Surpress `RuntimeWarning` in tests for the `applycutoff` function +* Surpress the `RuntimeWarning` in tests for the `applycutoff` function **Security:** diff --git a/tests/integration_test.py b/tests/integration_test.py index f9cb74a..ac2d58c 100644 --- a/tests/integration_test.py +++ b/tests/integration_test.py @@ -122,6 +122,7 @@ def test_applycutoff_range2(self): self.test_gui.qmaxentry.insert(0, "35") # when + # surpressed RuntimeWarning so warning isn't generated when test encounters slice of all NaNs with warnings.catch_warnings(): warnings.simplefilter("ignore", category=RuntimeWarning) self.test_gui.applycutoff()