Skip to content

Commit d2352c7

Browse files
removed empty_frame fixture and removed duplicated float_frame fixture
1 parent d8c85d7 commit d2352c7

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed

pandas/tests/frame/conftest.py

-17
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,6 @@
55
import pandas.util.testing as tm
66

77

8-
@pytest.fixture
9-
def empty_frame():
10-
"""
11-
Fixture for DataFrame that is empty
12-
"""
13-
return DataFrame()
14-
15-
16-
@pytest.fixture
17-
def float_frame():
18-
"""
19-
Fixture for DataFrame of floats with index of unique strings
20-
"""
21-
df = DataFrame(tm.getSeriesData())
22-
return df
23-
24-
258
@pytest.fixture
269
def float_frame_with_na():
2710
"""

pandas/tests/frame/test_repr_info.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727

2828

2929
class TestDataFrameReprInfoEtc:
30-
def test_repr_empty(self, empty_frame):
30+
def test_repr_empty(self):
3131
# empty
32-
foo = repr(empty_frame) # noqa
32+
foo = repr(DataFrame()) # noqa
3333

3434
# empty with index
3535
frame = DataFrame(index=np.arange(1000))
@@ -53,7 +53,7 @@ def test_repr_mixed_big(self):
5353

5454
foo = repr(biggie) # noqa
5555

56-
def test_repr(self, float_frame, empty_frame):
56+
def test_repr(self, float_frame):
5757
buf = StringIO()
5858

5959
# small one
@@ -71,7 +71,7 @@ def test_repr(self, float_frame, empty_frame):
7171
foo = repr(no_index) # noqa
7272

7373
# no columns or index
74-
empty_frame.info(buf=buf)
74+
DataFrame().info(buf=buf)
7575

7676
df = DataFrame(["a\n\r\tb"], columns=["a\n\r\td"], index=["a\n\r\tf"])
7777
assert "\t" not in repr(df)

0 commit comments

Comments
 (0)