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

Skip to content

Commit 0f5fe5d

Browse files
committed
TST: hide possible unavailable import
1 parent 774f558 commit 0f5fe5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/tests/test_backend_tk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import pytest
22
import numpy as np
33
from matplotlib import pyplot as plt
4-
from matplotlib.backends import _tkagg
54

65

76
@pytest.mark.backend('TkAgg', skip_on_importerror=True)
87
def test_blit():
8+
from matplotlib.backends import _tkagg
99
def evil_blit(photoimage, aggimage, offsets, bboxptr):
1010
data = np.asarray(aggimage)
1111
height, width = data.shape[:2]

0 commit comments

Comments
 (0)