Skip to content

CI: deprecation warning tests failing on linux py37_local pipeline #31564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AlexKirko opened this issue Feb 2, 2020 · 1 comment
Closed
Labels
CI Continuous Integration
Milestone

Comments

@AlexKirko
Copy link
Member

AlexKirko commented Feb 2, 2020

Problem description

As of now, the Linux py37_locale pipeline seems to fail independent of PR:

_________________ TestRegistration.test_registering_no_warning _________________
2020-02-02T08:55:26.6331296Z [gw1] linux -- Python 3.7.6 /home/vsts/miniconda3/envs/pandas-dev/bin/python

self = <pandas.tests.plotting.test_converter.TestRegistration object at 0x7f97699062d0>

     def test_registering_no_warning(self):
         plt = pytest.importorskip("matplotlib.pyplot")
         s = Series(range(12), index=date_range("2017", periods=12))
         _, ax = plt.subplots()
     
        # Set to the "warn" state, in case this isn't the first test run
        register_matplotlib_converters()
        with tm.assert_produces_warning(DeprecationWarning, check_stacklevel=False):
            # GH#30588 DeprecationWarning from 2D indexing
>            ax.plot(s.index, s.values)
E               AssertionError: Did not see expected warning of class 'DeprecationWarning'

Full failures output

2020-02-02T08:55:26.6329275Z =================================== FAILURES ===================================
2020-02-02T08:55:26.6329476Z _________________ TestRegistration.test_registering_no_warning _________________
2020-02-02T08:55:26.6331296Z [gw1] linux -- Python 3.7.6 /home/vsts/miniconda3/envs/pandas-dev/bin/python
2020-02-02T08:55:26.6331555Z 
2020-02-02T08:55:26.6331736Z self = <pandas.tests.plotting.test_converter.TestRegistration object at 0x7f97699062d0>
2020-02-02T08:55:26.6331919Z 
2020-02-02T08:55:26.6332094Z     def test_registering_no_warning(self):
2020-02-02T08:55:26.6332272Z         plt = pytest.importorskip("matplotlib.pyplot")
2020-02-02T08:55:26.6332458Z         s = Series(range(12), index=date_range("2017", periods=12))
2020-02-02T08:55:26.6332629Z         _, ax = plt.subplots()
2020-02-02T08:55:26.6332795Z     
2020-02-02T08:55:26.6333232Z         # Set to the "warn" state, in case this isn't the first test run
2020-02-02T08:55:26.6333431Z         register_matplotlib_converters()
2020-02-02T08:55:26.6333618Z         with tm.assert_produces_warning(DeprecationWarning, check_stacklevel=False):
2020-02-02T08:55:26.6333793Z             # GH#30588 DeprecationWarning from 2D indexing
2020-02-02T08:55:26.6333984Z >           ax.plot(s.index, s.values)
2020-02-02T08:55:26.6334129Z 
2020-02-02T08:55:26.6334293Z pandas/tests/plotting/test_converter.py:71: 
2020-02-02T08:55:26.6334479Z _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
2020-02-02T08:55:26.6334637Z 
2020-02-02T08:55:26.6334800Z self = <contextlib._GeneratorContextManager object at 0x7f9769b95250>
2020-02-02T08:55:26.6334986Z type = None, value = None, traceback = None
2020-02-02T08:55:26.6335129Z 
2020-02-02T08:55:26.6335310Z     def __exit__(self, type, value, traceback):
2020-02-02T08:55:26.6335477Z         if type is None:
2020-02-02T08:55:26.6335637Z             try:
2020-02-02T08:55:26.6335813Z >               next(self.gen)
2020-02-02T08:55:26.6336232Z E               AssertionError: Did not see expected warning of class 'DeprecationWarning'
2020-02-02T08:55:26.6336444Z 
2020-02-02T08:55:26.6336863Z ../../../miniconda3/envs/pandas-dev/lib/python3.7/contextlib.py:119: AssertionError
2020-02-02T08:55:26.6337076Z ___________________ TestRegistration.test_option_no_warning ____________________
2020-02-02T08:55:26.6337500Z [gw1] linux -- Python 3.7.6 /home/vsts/miniconda3/envs/pandas-dev/bin/python
2020-02-02T08:55:26.6337681Z 
2020-02-02T08:55:26.6337867Z self = <pandas.tests.plotting.test_converter.TestRegistration object at 0x7f9769c690d0>
2020-02-02T08:55:26.6338027Z 
2020-02-02T08:55:26.6338188Z     def test_option_no_warning(self):
2020-02-02T08:55:26.6338368Z         pytest.importorskip("matplotlib.pyplot")
2020-02-02T08:55:26.6338539Z         ctx = cf.option_context("plotting.matplotlib.register_converters", False)
2020-02-02T08:55:26.6338733Z         plt = pytest.importorskip("matplotlib.pyplot")
2020-02-02T08:55:26.6338903Z         s = Series(range(12), index=date_range("2017", periods=12))
2020-02-02T08:55:26.6339083Z         _, ax = plt.subplots()
2020-02-02T08:55:26.6339242Z     
2020-02-02T08:55:26.6339402Z         # Test without registering first, no warning
2020-02-02T08:55:26.6339586Z         with ctx:
2020-02-02T08:55:26.6339759Z             # GH#30588 DeprecationWarning from 2D indexing on Index
2020-02-02T08:55:26.6339947Z             with tm.assert_produces_warning(DeprecationWarning, check_stacklevel=False):
2020-02-02T08:55:26.6340121Z >               ax.plot(s.index, s.values)
2020-02-02T08:55:26.6340414Z 
2020-02-02T08:55:26.6340592Z pandas/tests/plotting/test_converter.py:105: 
2020-02-02T08:55:26.6340763Z _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
2020-02-02T08:55:26.6340928Z 
2020-02-02T08:55:26.6341093Z self = <contextlib._GeneratorContextManager object at 0x7f976ac1aa90>
2020-02-02T08:55:26.6341279Z type = None, value = None, traceback = None
2020-02-02T08:55:26.6341440Z 
2020-02-02T08:55:26.6341601Z     def __exit__(self, type, value, traceback):
2020-02-02T08:55:26.6341764Z         if type is None:
2020-02-02T08:55:26.6341941Z             try:
2020-02-02T08:55:26.6342099Z >               next(self.gen)
2020-02-02T08:55:26.6342547Z E               AssertionError: Did not see expected warning of class 'DeprecationWarning'
2020-02-02T08:55:26.6342814Z 
2020-02-02T08:55:26.6343228Z ../../../miniconda3/envs/pandas-dev/lib/python3.7/contextlib.py:119: AssertionError

Saw this in two PRs that have gone through checks recently, and none of them touch anything that relates to the failing tests (#31562 #31559).

@charlesdong1991 charlesdong1991 added the CI Continuous Integration label Feb 2, 2020
@jreback jreback added this to the 1.0.1 milestone Feb 2, 2020
@jreback
Copy link
Contributor

jreback commented Feb 2, 2020

closed by #31573

thanks for reporting!

@jreback jreback closed this as completed Feb 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration
Projects
None yet
Development

No branches or pull requests

3 participants