8000 Merge pull request #14145 from anntzer/unwarn · matplotlib/matplotlib@4c70e91 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c70e91

Browse files
authored
Merge pull request #14145 from anntzer/unwarn
Remove warnings handling for fixed bugs.
2 parents 40583b0 + e4a7add commit 4c70e91

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6079,8 +6079,7 @@ def invert(x):
60796079

60806080
secax(0.2, functions=(invert, invert))
60816081
secax(0.4, functions=(lambda x: 2 * x, lambda x: x / 2))
6082-
with pytest.warns(RuntimeWarning): # Needs to be fixed.
6083-
secax(0.6, functions=(lambda x: x**2, lambda x: x**(1/2)))
6082+
secax(0.6, functions=(lambda x: x**2, lambda x: x**(1/2)))
60846083
secax(0.8)
60856084

60866085

@@ -6102,8 +6101,7 @@ def invert(x):
61026101
with np.errstate(divide='ignore'):
61036102
return 1 / x
61046103

6105-
with pytest.warns(RuntimeWarning): # May need to be fixed.
6106-
ax.secondary_xaxis('top', functions=(invert, invert))
6104+
ax.secondary_xaxis('top', functions=(invert, invert))
61076105
fig.canvas.draw()
61086106
fig.set_size_inches((7, 4))
61096107
assert_allclose(ax.get_position().extents, [0.125, 0.1, 0.9, 0.9])

0 commit comments

Comments
 (0)
0