Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 25c8148

Browse files
committed
TST: simplify axes checking logic
Hopefully this will resolve the code coverage issue.
1 parent 9f0b2e9 commit 25c8148

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/tests/test_backend_svg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def include(gid, obj):
189189
if isinstance(obj, plt.Text):
190190
if obj.get_text() == "":
191191
return False
192-
elif not hasattr(obj, "axes") or obj.axes is None:
192+
elif obj.axes is None:
193193
return False
194194
if isinstance(obj, plt.Line2D):
195195
if np.array(obj.get_data()).shape == (2, 1):

0 commit comments

Comments
 (0)