Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

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
remove unused UnserializableWarning
  • Loading branch information
minrk committed May 2, 2017
commit 11d055af6624912cc3fa17613acc286e9b0f39b8
1 change: 0 additions & 1 deletion pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import pandas.core.algorithms as algos
import pandas.core.common as com
import pandas.core.missing as missing
from pandas.errors import UnserializableWarning
from pandas.io.formats.printing import pprint_thing
from pandas.io.formats.format import format_percentiles
from pandas.tseries.frequencies import to_offset
Expand Down
6 changes: 0 additions & 6 deletions pandas/errors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,3 @@ class ParserWarning(Warning):
"""


class UnserializableWarning(Warning):
"""
Warning that is raised when a DataFrame cannot be serialized.

.. versionadded:: 0.20.0
"""
5 changes: 1 addition & 4 deletions pandas/tests/io/formats/test_printing.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import pandas as pd

from pandas import compat
from pandas.errors import UnserializableWarning
import pandas.io.formats.printing as printing
import pandas.io.formats.format as fmt
import pandas.util.testing as tm
Expand Down Expand Up @@ -173,9 +172,7 @@ def test_publishes_not_implemented(self):
opt = pd.option_context('display.html.table_schema', True)

with opt:
# FIXME: no warning for now
with pytest.warns(UnserializableWarning) as record:
formatted = self.display_formatter.format(df)
formatted = self.display_formatter.format(df)

expected = {'text/plain', 'text/html'}
assert set(formatted[0].keys()) == expected
Expand Down