Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 966f50b

Browse files
committed
TST: splitlines in rec2txt test
On windows the output has '\r\n' instead of '\n' for new lines.
1 parent c94c282 commit 966f50b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_mlab.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,8 @@ def test_csv2txt_basic(self):
405405
(str('s2'), str, 4)]))
406406
truth = (' x y s s2\n'
407407
' 1.000 2 foo bing \n'
408-
' 2.000 3 bar blah ')
409-
assert_equal(mlab.rec2txt(a), truth)
408+
' 2.000 3 bar blah ').splitlines()
409+
assert_equal(mlab.rec2txt(a).splitlines(), truth)
410410

411411

412412
class window_testcase(CleanupTestCase):

0 commit comments

Comments
 (0)