Skip to content

Commit 9670b31

Browse files
committed
TST: skip mmap error comparison on windows
1 parent 8f32292 commit 9670b31

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pandas/io/tests/test_common.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
"""
22
Tests for the pandas.io.common functionalities
33
"""
4-
from pandas.compat import StringIO
4+
import nose
55
import mmap
66
import os
77
from os.path import isabs
88

99
import pandas.util.testing as tm
1010

1111
from pandas.io import common
12+
from pandas.compat import is_platform_windows, StringIO
1213

1314
from pandas import read_csv, concat
1415

@@ -97,6 +98,10 @@ def setUp(self):
9798
'test_mmap.csv')
9899

99100
def test_constructor_bad_file(self):
101+
if is_platform_windows():
102+
raise nose.SkipTest("skipping construction error messages "
103+
"tests on windows")
104+
100105
non_file = StringIO('I am not a file')
101106
non_file.fileno = lambda: -1
102107

0 commit comments

Comments
 (0)