Skip to content

Commit 181fad2

Browse files
committed
move import used only on Windows and remove unused import
1 parent eaee7fd commit 181fad2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/test_image_access.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
import sysconfig
55

66
import pytest
7-
from setuptools.command.build_ext import new_compiler
87

98
from PIL import Image
109

11-
from .helper import assert_image_equal, hopper, is_win32, on_ci
10+
from .helper import assert_image_equal, hopper, is_win32
1211

1312
# CFFI imports pycparser which doesn't support PYTHONOPTIMIZE=2
1413
# https://github.com/eliben/pycparser/pull/198#issuecomment-317001670
@@ -410,6 +409,7 @@ class TestEmbeddable:
410409
@pytest.mark.skipif(not is_win32(), reason="requires Windows")
411410
def test_embeddable(self):
412411
import ctypes
412+
from setuptools.command.build_ext import new_compiler
413413

414414
with open("embed_pil.c", "w", encoding="utf-8") as fh:
415415
fh.write(

0 commit comments

Comments
 (0)