Skip to content

Commit faf7dc5

Browse files
committed
ENH(TST): output full lines whenever type sub-string doesn't match
Happened with numpy 1.5.1 on travis: https://travis-ci.org/nipy/nibabel/builds/93958679
1 parent de4de14 commit faf7dc5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nibabel/tests/test_scripts.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ def test_nib_ls_multiple():
8282
assert_equal(len(stdout_lines), 4)
8383
# they should be indented correctly. Since all files are int type -
8484
ln = max(len(f) for f in fnames)
85-
assert_equal([l[ln:ln+2] for l in stdout_lines], [' i']*4)
85+
assert_equal([l[ln:ln+2] for l in stdout_lines], [' i']*4,
86+
msg="Type sub-string didn't start with 'i'. "
87+
"Full output was: %s" % stdout_lines)
8688
# and if disregard type indicator which might vary
8789
assert_equal(
8890
[l[l.index('['):] for l in stdout_lines],

0 commit comments

Comments
 (0)