From 09cd64696048ea6a10302c5b18372566c39577ce Mon Sep 17 00:00:00 2001 From: Michael Waskom Date: Tue, 9 Aug 2022 17:46:37 -0400 Subject: [PATCH] Avoid accessing private attribute --- tests/test_axisgrid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_axisgrid.py b/tests/test_axisgrid.py index 763d8786a9..924fe3a859 100644 --- a/tests/test_axisgrid.py +++ b/tests/test_axisgrid.py @@ -1455,7 +1455,7 @@ def test_tick_params(self): for tick in getattr(ax, axis).get_major_ticks(): assert mpl.colors.same_color(tick.tick1line.get_color(), color) assert mpl.colors.same_color(tick.tick2line.get_color(), color) - assert tick._width == width + assert tick.tick1line.get_linewidth() == width class TestJointGrid: