Skip to content

Commit ee7b457

Browse files
committed
Test added by default
1 parent 2cf0601 commit ee7b457

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pandas/tests/plotting/test_converter.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import subprocess
12
import pytest
23
from datetime import datetime, date
34

@@ -20,6 +21,15 @@ def test_timtetonum_accepts_unicode():
2021

2122
class TestRegistration(object):
2223

24+
def test_register_by_default(self):
25+
# Run in subprocess to ensure a clean state
26+
code = ("'import matplotlib.units; "
27+
"import pandas as pd; "
28+
"units = dict(matplotlib.units.registry); "
29+
"assert pd.Timestamp in units)'")
30+
call = ['python', '-c', code]
31+
assert subprocess.check_call(call) == 0
32+
2333
def test_warns(self):
2434
plt = pytest.importorskip("matplotlib.pyplot")
2535
s = Series(range(12), index=date_range('2017', periods=12))

0 commit comments

Comments
 (0)