8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cf0601 commit ee7b457Copy full SHA for ee7b457
pandas/tests/plotting/test_converter.py
@@ -1,3 +1,4 @@
1
+import subprocess
2
import pytest
3
from datetime import datetime, date
4
@@ -20,6 +21,15 @@ def test_timtetonum_accepts_unicode():
20
21
22
class TestRegistration(object):
23
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
+
33
def test_warns(self):
34
plt = pytest.importorskip("matplotlib.pyplot")
35
s = Series(range(12), index=date_range('2017', periods=12))
0 commit comments