diff --git a/TESTING.rst b/TESTING.rst index cd99cbb..2ac28c7 100644 --- a/TESTING.rst +++ b/TESTING.rst @@ -19,7 +19,13 @@ Here's the OSX Homebrew command: brew install libjpeg libtiff little-cms2 openjpeg webp -Finally, just run ``tox``! +Finally, just run ``tox``:: + + poetry run tox + # or + poetry shell + tox + If you want, you can test against a specific version like this: ``tox -e py312-pil`` diff --git a/qrcode/tests/test_script.py b/qrcode/tests/test_script.py index 5135b1f..d6338de 100644 --- a/qrcode/tests/test_script.py +++ b/qrcode/tests/test_script.py @@ -48,7 +48,7 @@ def test_stdin_py3_unicodedecodeerror(): def test_optimize(): - pytest.importorskip("PyPNG", reason="Requires PyPNG") + pytest.importorskip("PIL", reason="Requires PIL") main("testtext --optimize 0".split())