File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -97,13 +97,15 @@ def test_labeltable():
97
97
def test_metadata ():
98
98
# Test deprecation
99
99
with clear_and_catch_warnings () as w :
100
- warnings .filterwarnings ('once ' , category = DeprecationWarning )
100
+ warnings .filterwarnings ('always ' , category = DeprecationWarning )
101
101
assert_equal (len (GiftiDataArray ().get_metadata ()), 0 )
102
+ assert_equal (len (w ), 1 )
102
103
103
104
# Test deprecation
104
105
with clear_and_catch_warnings () as w :
105
106
warnings .filterwarnings ('once' , category = DeprecationWarning )
106
107
assert_equal (len (GiftiMetaData ().get_metadata ()), 0 )
108
+ assert_equal (len (w ), 1 )
107
109
108
110
109
111
def test_gifti_label_rgba ():
@@ -133,6 +135,7 @@ def assign_rgba(gl, val):
133
135
with clear_and_catch_warnings () as w :
134
136
warnings .filterwarnings ('once' , category = DeprecationWarning )
135
137
assert_equal (kwargs ['red' ], gl3 .get_rgba ()[0 ])
138
+ assert_equal (len (w ), 1 )
136
139
137
140
# Test default value
138
141
gl4 = GiftiLabel ()
You can’t perform that action at this time.
0 commit comments