You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WCSAxes test_format_coord_regression fails when plt.ion() is set #5691
I get the following failure when testing Astropy (dev version) on my machine:
____________test_format_coord_regression____________tmpdir=local('/tmp/pytest-of-lim/pytest-5/test_format_coord_regression0')
deftest_format_coord_regression(tmpdir):
# Regression test for a bug that meant that if format_coord was called by# Matplotlib before the axes were drawn, an error occurred.fig=plt.figure(figsize=(3, 3))
ax=WCSAxes(fig, [0.1, 0.1, 0.8, 0.8])
fig.add_axes(ax)
>assertax.format_coord(10, 10) ==""Eassert'11.0 11.0 (world)'==''E-11.011.0 (world)
astropy/visualization/wcsaxes/tests/test_misc.py:34: AssertionError
This is because I have plt.ion() set as a default behavior (as I want it to be). When I manually set plt.ioff() first before running that code snippet, it passes. Hence, this test is flaky and will fail for some people.
Since this only affects one test on local machine under specific circumstance, I am closing this as "won't fix". We can always revisit if enough people complain about it.
Activity
pllim commentedon May 11, 2017
Since this only affects one test on local machine under specific circumstance, I am closing this as "won't fix". We can always revisit if enough people complain about it.