File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change
1
+ **Added: **
2
+
3
+ * <news item>
4
+
5
+ **Changed: **
6
+
7
+ * <news item>
8
+
9
+ **Deprecated: **
10
+
11
+ * <news item>
12
+
13
+ **Removed: **
14
+
15
+ * <news item>
16
+
17
+ **Fixed: **
18
+
19
+ * Surpress `RuntimeWarning ` in tests for the `applycutoff ` function
20
+
21
+ **Security: **
22
+
23
+ * <news item>
Original file line number Diff line number Diff line change 1
1
import unittest
2
+ import warnings
2
3
3
4
import h5py
4
5
import numpy as np
@@ -105,7 +106,9 @@ def test_applycutoff_range1(self):
105
106
self .test_gui .qmaxentry .insert (0 , "40" )
106
107
107
108
# when
108
- self .test_gui .applycutoff ()
109
+ with warnings .catch_warnings ():
110
+ warnings .simplefilter ("ignore" , category = RuntimeWarning )
111
+ self .test_gui .applycutoff ()
109
112
result = self .test_gui .cube
110
113
111
114
# then
@@ -119,7 +122,9 @@ def test_applycutoff_range2(self):
119
122
self .test_gui .qmaxentry .insert (0 , "35" )
120
123
121
124
# when
122
- self .test_gui .applycutoff ()
125
+ with warnings .catch_warnings ():
126
+ warnings .simplefilter ("ignore" , category = RuntimeWarning )
127
+ self .test_gui .applycutoff ()
123
128
result = self .test_gui .cube
124
129
125
130
# then
You can’t perform that action at this time.
0 commit comments