Skip to content

Commit 915af02

Browse files
committed
Test is a PIL only test
1 parent 90dfd34 commit 915af02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

qrcode/tests/regression/test_pil_clear.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
import pytest
66

77
import qrcode
8+
from qrcode.constants import PIL_AVAILABLE
89

910
if TYPE_CHECKING:
1011
from pathlib import Path
1112

1213

13-
@pytest.mark.parametrize("back_color", ["TransParent", "red", (255, 195, 235)])
14+
@pytest.mark.skipif(not PIL_AVAILABLE, reason="PIL is not installed")
1415
def test_qrcode_clear_resets_size(tmp_path: Path):
1516
"""
1617
Test that QRCode.clear() properly resets the QRCode object.

0 commit comments

Comments
 (0)