Skip to content

Commit 71d9979

Browse files
committed
revert tests xfail
1 parent c6034b4 commit 71d9979

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

pandas/tests/frame/test_to_csv.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from numpy import nan
99
import numpy as np
1010

11-
from pandas.compat import (lmap, range, lrange, StringIO, u, PY2)
11+
from pandas.compat import (lmap, range, lrange, StringIO, u)
1212
import pandas.core.common as com
1313
from pandas.errors import ParserError
1414
from pandas import (DataFrame, Index, Series, MultiIndex, Timestamp,
@@ -925,9 +925,6 @@ def test_to_csv_compression(self, compression):
925925
[12.32112, 123123.2, 321321.2]],
926926
index=['A', 'B'], columns=['X', 'Y', 'Z'])
927927

928-
if PY2 and compression == 'zip':
929-
pytest.xfail(reason='zip compression not supported in Python 2.')
930-
931928
with ensure_clean() as filename:
932929

933930
df.to_csv(filename, compression=compression)

pandas/tests/io/test_pickle.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from distutils.version import LooseVersion
2121
import pandas as pd
2222
from pandas import Index
23-
from pandas.compat import is_platform_little_endian, PY2
23+
from pandas.compat import is_platform_little_endian
2424
import pandas
2525
import pandas.util.testing as tm
2626
import pandas.util._test_decorators as td
@@ -357,9 +357,6 @@ def test_write_explicit(self, compression, get_random_path):
357357
path1 = base + ".compressed"
358358
path2 = base + ".raw"
359359

360-
if PY2 and compression == 'zip':
361-
pytest.xfail(reason='zip compression not supported in Python 2.')
362-
363360
with tm.ensure_clean(path1) as p1, tm.ensure_clean(path2) as p2:
364361
df = tm.makeDataFrame()
365362

pandas/tests/series/test_io.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
from pandas import Series, DataFrame
1212

13-
from pandas.compat import StringIO, u, PY2
13+
from pandas.compat import StringIO, u
1414
from pandas.util.testing import (assert_series_equal, assert_almost_equal,
1515
assert_frame_equal, ensure_clean)
1616
import pandas.util.testing as tm
@@ -143,9 +143,6 @@ def test_to_csv_compression(self, compression):
143143
s = Series([0.123456, 0.234567, 0.567567], index=['A', 'B', 'C'],
144144
name='X')
145145

146-
if PY2 and compression == 'zip':
147-
pytest.xfail(reason='zip compression not supported in Python 2.')
148-
149146
with ensure_clean() as filename:
150147

151148
s.to_csv(filename, compression=compression, header=True)

0 commit comments

Comments
 (0)