Skip to content

Commit b42c8fc

Browse files
committed
BF(TST): allow for warnings to be spit out in stderr while testing scripts
1 parent 8e5e52e commit b42c8fc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nibabel/tests/test_scripts.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,10 @@ def test_help():
142142
assert_equal(code, 0)
143143
assert_re_in(".*%s" % cmd, stdout)
144144
assert_re_in(".*Usage", stdout)
145-
assert_equal(stderr, '')
145+
# Some third party modules might like to announce some Deprecation
146+
# etc warnings, see e.g. https://travis-ci.org/nipy/nibabel/jobs/370353602
147+
if 'warning' not in stderr.lower():
148+
assert_equal(stderr, '')
146149

147150

148151
@script_test

0 commit comments

Comments
 (0)