Skip to content

Commit 0565b07

Browse files
Remove TestData from frame-tests test_indexing.py
1 parent de5c792 commit 0565b07

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

pandas/tests/frame/test_indexing.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
)
2626
import pandas.core.common as com
2727
from pandas.core.indexing import IndexingError
28-
from pandas.tests.frame.common import TestData
2928
import pandas.util.testing as tm
3029
from pandas.util.testing import (
3130
assert_almost_equal,
@@ -36,7 +35,7 @@
3635
from pandas.tseries.offsets import BDay
3736

3837

39-
class TestDataFrameIndexing(TestData):
38+
class TestDataFrameIndexing:
4039
def test_getitem(self, float_frame):
4140
# Slicing
4241
sl = float_frame[:20]
@@ -1167,8 +1166,8 @@ def test_setitem_fancy_mixed_2d(self, float_string_frame):
11671166

11681167
with catch_warnings(record=True):
11691168
simplefilter("ignore", FutureWarning)
1170-
self.mixed_frame.ix[:5, ["C", "B", "A"]] = 5
1171-
result = self.mixed_frame.ix[:5, ["C", "B", "A"]]
1169+
float_string_frame.ix[:5, ["C", "B", "A"]] = 5
1170+
result = float_string_frame.ix[:5, ["C", "B", "A"]]
11721171
assert (result.values == 5).all()
11731172

11741173
float_string_frame.ix[5] = np.nan
@@ -3402,7 +3401,7 @@ def test_interval_index(self):
34023401
assert_series_equal(result, expected)
34033402

34043403

3405-
class TestDataFrameIndexingDatetimeWithTZ(TestData):
3404+
class TestDataFrameIndexingDatetimeWithTZ:
34063405
def test_setitem(self, timezone_frame):
34073406

34083407
df = timezone_frame
@@ -3461,7 +3460,7 @@ def test_scalar_assignment(self):
34613460
tm.assert_frame_equal(df, expected)
34623461

34633462

3464-
class TestDataFrameIndexingUInt64(TestData):
3463+
class TestDataFrameIndexingUInt64:
34653464
def test_setitem(self, uint64_frame):
34663465

34673466
df = uint64_frame

0 commit comments

Comments
 (0)