Skip to content

ENH: extension ops #21191

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

Closed
wants to merge 12 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
add repr tests
  • Loading branch information
jreback committed May 31, 2018
commit 1e8061cd1e1207a7a4bdb72fc5ec50b777266e35
10 changes: 10 additions & 0 deletions pandas/tests/extension/base/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ def test_repr(self, data):
df = pd.DataFrame({"A": data})
repr(df)

def test_repr_array(self, data):
# some arrays may be able to assert
# attributes in the repr
repr(data)

def test_repr_array_long(self, data):
# some arrays may be able to assert a ... in the repr
with pd.option_context('display.max_seq_items', 1):
repr(data)

def test_dtype_name_in_info(self, data):
buf = StringIO()
pd.DataFrame({"A": data}).info(buf=buf)
Expand Down