We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5405643 commit 137946aCopy full SHA for 137946a
qrcode/tests/test_qrcode_pypng.py
@@ -1,13 +1,16 @@
1
import io
2
from unittest import mock
3
4
-import png
+import pytest
5
+
6
7
import qrcode
8
import qrcode.util
9
from qrcode.image.pure import PyPNGImage
10
from qrcode.tests.consts import UNICODE_TEXT
11
12
+png = pytest.importorskip("png", reason="png is not installed")
13
14
15
def test_render_pypng():
16
qr = qrcode.QRCode()
qrcode/tests/test_script.py
@@ -48,6 +48,7 @@ def test_stdin_py3_unicodedecodeerror():
48
49
50
def test_optimize():
51
+ pytest.importorskip("PyPNG", reason="Requires PyPNG")
52
main("testtext --optimize 0".split())
53
54
0 commit comments