Skip to content

Commit ee90541

Browse files
committed
test that table doesn't try to convert unitized data
1 parent e3a5cee commit ee90541

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/matplotlib/tests/test_table.py

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import datetime
12
import numpy as np
23
import pytest
34

@@ -229,3 +230,11 @@ def test_table_bbox(fig_test, fig_ref):
229230
loc='center',
230231
bbox=Bbox.from_extents(0.1, 0.2, 0.9, 0.8)
231232
)
233+
234+
235+
@check_figures_equal()
236+
def test_table_no_unit(fig_test, fig_ref):
237+
"""Verify that table doesn't participate in unit machinery"""
238+
x = [datetime.datetime(1968, 8, 1), datetime.datetime.now()]
239+
fig_test.subplots().table([x])
240+
fig_ref.subplots().table([[str(xi) for xi in x]])

0 commit comments

Comments
 (0)