Clean up so test_ts_plot_with_tz doesn't fail
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Thu, 2 Dec 2021 16:32:54 +0000 (16:32 +0000)
committerJochen Sprickerhof <jspricke@debian.org>
Thu, 2 Dec 2021 16:32:54 +0000 (16:32 +0000)
Author: Steffen Rehberg, Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug: https://github.com/pandas-dev/pandas/issues/35080
Forwarded: no

Gbp-Pq: Name 35080_plot_tests.patch

pandas/tests/plotting/test_converter.py

index 75f2dcacf244d502c15b6ad4f028c80ccf12e5a9..7ea1a847c043009db0387b525e41ae297fe7d2c8 100644 (file)
@@ -132,6 +132,7 @@ class TestRegistration:
         # Test without registering first, no warning
         with ctx:
             ax.plot(s.index, s.values)
+        plt.clf()
 
         # Now test with registering
         register_matplotlib_converters()