Skip to content

Commit 1e8061c

Browse files
committed
add repr tests
1 parent 546ca2d commit 1e8061c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pandas/tests/extension/base/interface.py

+10
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ def test_repr(self, data):
4040
df = pd.DataFrame({"A": data})
4141
repr(df)
4242

43+
def test_repr_array(self, data):
44+
# some arrays may be able to assert
45+
# attributes in the repr
46+
repr(data)
47+
48+
def test_repr_array_long(self, data):
49+
# some arrays may be able to assert a ... in the repr
50+
with pd.option_context('display.max_seq_items', 1):
51+
repr(data)
52+
4353
def test_dtype_name_in_info(self, data):
4454
buf = StringIO()
4555
pd.DataFrame({"A": data}).info(buf=buf)

0 commit comments

Comments
 (0)