From 39cf5023d01d3f47cf86dbe5e7f630cdf9dc7718 Mon Sep 17 00:00:00 2001 From: Mariana Bedran Lesche Date: Fri, 27 Sep 2024 13:11:00 -0300 Subject: [PATCH] Fix test dependency skip --- TESTING.rst | 8 +++++++- qrcode/tests/test_script.py | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) 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())