Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark Windows tests as failing #57

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,15 @@ def test_wrong_encoding_detection_latin(self):
assert self.row1 == next(records)
assert self.row2 == next(records)

@pytest.mark.xfail("platform.system() == 'Windows'", reason="#56")
def test_bytes_encoding_detection_windows(self):
"""Test for detecting the encoding of a windows-1252 bytes file"""
filepath = p.join(io.DATA_DIR, "windows1252.csv")
records = io.read_csv(filepath, mode="rb")
assert self.row1 == next(records)
assert self.row4 == next(records)

@pytest.mark.xfail("platform.system() == 'Windows'", reason="#56")
def test_wrong_encoding_detection_windows(self):
"""Test for detecting the encoding of a windows file opened in ascii"""
filepath = p.join(io.DATA_DIR, "windows1252.csv")
Expand Down Expand Up @@ -360,6 +362,7 @@ def test_get_reader(self): # pylint: disable=R0201
with pytest.raises(KeyError):
io.get_reader("")

@pytest.mark.xfail("platform.system() == 'Windows'", reason="#56")
def test_opened_files(self):
"""Test for reading open files"""
filepath = p.join(io.DATA_DIR, "test.csv")
Expand Down Expand Up @@ -398,6 +401,7 @@ def test_opened_files(self):
finally:
f.close()

@pytest.mark.xfail("platform.system() == 'Windows'", reason="#56")
def test_reencode(self):
file_ = p.join(io.DATA_DIR, "utf16_big.csv")

Expand All @@ -416,6 +420,7 @@ def setup_method(self):
self.utf8_row = {"a": "4", "b": "5", "c": "ʤ"}
self.latin_row = {"a": "4", "b": "5", "c": "©"}

@pytest.mark.xfail("platform.system() == 'Windows'", reason="#56")
def test_urlopen_utf8(self):
"""Test for reading utf-8 files"""
filepath = p.join(io.DATA_DIR, "utf8.csv")
Expand All @@ -426,6 +431,7 @@ def test_urlopen_utf8(self):
row = next(it.islice(records, 1, 2))
assert self.utf8_row == row

@pytest.mark.xfail("platform.system() == 'Windows'", reason="#56")
def test_urlopen_latin1(self):
"""Test for reading latin-1 files"""
filepath = p.join(io.DATA_DIR, "latin1.csv")
Expand Down
Loading