Skip to content

Commit

Permalink
Add test for spyder-ide#6729 unable to view pandas DateOffset objects…
Browse files Browse the repository at this point in the history
… in ColEdit
  • Loading branch information
CAM-Gerlach committed Mar 12, 2018
1 parent cd2397b commit 891b976
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spyder/widgets/variableexplorer/tests/test_collectioneditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,5 +382,19 @@ def test_xml_dom_element_view():
col_editor.accept()


def test_pandas_dateoffset_view():
"""
Test that pandas ``DateOffset`` objs can be viewied in CollectionsEditor.
Regression test for issue #6729 .
"""
test_dateoffset = pandas.DateOffset()
col_editor = CollectionsEditor(None)
col_editor.setup(test_dateoffset)
col_editor.show()
assert col_editor.get_value()
col_editor.accept()


if __name__ == "__main__":
pytest.main()

0 comments on commit 891b976

Please sign in to comment.