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

Skip to content

Commit ed86507

Browse files
committed
FIX: correct polarity on skipping test
1 parent 153bfa1 commit ed86507

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_backend_tk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def _isolated_tk_test(success_count, func=None):
2929
return func
3030

3131
@pytest.mark.skipif(
32-
importlib.util.find_spec('tkinter'),
32+
not importlib.util.find_spec('tkinter'),
3333
reason="missing tkinter"
3434
)
3535
@pytest.mark.skipif(
@@ -189,7 +189,7 @@ class Toolbar(NavigationToolbar2Tk):
189189

190190
@pytest.mark.backend('TkAgg', skip_on_importerror=True)
191191
@_isolated_tk_test(success_count=1)
192-
def test_canvas_focus(): # pragma: no cover
192+
def test_canvas_focus():
193193
import tkinter as tk
194194
import matplotlib.pyplot as plt
195195
success = []

0 commit comments

Comments
 (0)