Skip to content

Commit 435968d

Browse files
skip one test for windows
1 parent 7a5f811 commit 435968d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/tests/generic/test_frame.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# -*- coding: utf-8 -*-
22
# pylint: disable-msg=E1101,W0612
33

4+
import os
45
from copy import deepcopy
56
from distutils.version import LooseVersion
67
from operator import methodcaller
@@ -270,6 +271,8 @@ def test_deepcopy_empty(self):
270271

271272
self._compare(empty_frame_copy, empty_frame)
272273

274+
@pytest.mark.skipif(os.name == 'nt',
275+
reason="Windows use \r\n for newline")
273276
@pytest.mark.parametrize("header, index_label, expected", [
274277
(False, None, 'index.name,,\n0,0,0\n1,0,0\n'),
275278
(True, None, 'index.name,0,1\n0,0,0\n1,0,0\n'),
@@ -284,6 +287,8 @@ def test_to_csv_header_single_index(self, header, index_label, expected):
284287
result = df.to_csv(header=header, index_label=index_label)
285288
assert result == expected
286289

290+
@pytest.mark.skipif(os.name == 'nt',
291+
reason="Windows use \r\n for newline")
287292
@pytest.mark.parametrize("header, index_label, expected", [
288293
(False, None, 'index.name.0,index.name.1,,\na,b,0,0\na,c,0,0\n'),
289294
(True, None, 'index.name.0,index.name.1,0,1\na,b,0,0\na,c,0,0\n'),

0 commit comments

Comments
 (0)