Commit Graph

159 Commits

Author SHA1 Message Date
Andrew Murray
745eb23a87 Use LAB hopper file if conversion is not supported 2024-04-22 09:23:59 +10:00
Andrew Murray
27b10c4bd8 Deprecate eval(), replacing it with lambda_eval() and unsafe_eval() 2024-04-01 09:11:59 +03:00
Hugo van Kemenade
512ee3ff9b
Simplify code and update comments
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-31 23:13:30 -06:00
Hugo van Kemenade
9f5d6e0c31
Fix type hint
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2024-03-31 10:02:23 -06:00
Hugo van Kemenade
ed5cd18d9c Always return fresh not-yet-loaded image for hopper(None) 2024-03-31 15:07:15 +03:00
Andrew Murray
328052730d
Merge branch 'main' into hopper-lru-cache 2024-03-30 20:20:51 +11:00
Andrew Murray
fb6b860172 Added RGB to I;16, I;16L and I;16B conversion 2024-03-30 11:33:55 +11:00
Hugo van Kemenade
d131f1c513 Clarify comments 2024-03-28 22:13:09 +02:00
Hugo van Kemenade
504a2e17c8 Use functools.lru_cache for hopper() 2024-03-28 18:04:19 +02:00
Andrew Murray
6d78d42769 Added type hints 2024-03-02 13:12:17 +11:00
Andrew Murray
3f6422b512 Added type hints 2024-02-12 09:28:53 +11:00
pre-commit-ci[bot]
27b0cf67e7 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-05 17:18:52 +00:00
Andrew Murray
4674195321 Removed support for test-image-results 2024-01-21 15:01:12 +11:00
Andrew Murray
a18cee35ff
Updated import order
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-20 21:26:31 +11:00
pre-commit-ci[bot]
9454c28f0f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-01-20 10:24:57 +00:00
Andrew Murray
970bd102ba
Updated type hint
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-20 21:24:34 +11:00
Andrew Murray
99d851957f
Return early
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-20 21:23:08 +11:00
Andrew Murray
f7701e6596 Do not log URL of test images if there is no URL 2024-01-20 21:04:57 +11:00
Andrew Murray
9b6c1e3763 Added type hints 2024-01-20 11:13:06 +11:00
Andrew Murray
81b5c5dc68 Added type hints 2024-01-19 08:37:58 +11:00
Hugo van Kemenade
43b2f61e79 Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
Ondrej Baranovič
6fe42bddd9 Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-11-28 14:20:57 +01:00
nulano
1fdb0668d8 test cibuildwheel wheels in Docker on Windows 2023-11-28 14:20:57 +01:00
Hugo van Kemenade
5eea6ed633 Replace 'assert False' with pytest.fail() 2023-11-12 22:30:28 +02:00
Hugo van Kemenade
36d0bf044b Fix LOG005 use exception() within an exception handler 2023-09-25 16:45:38 +03:00
Hugo van Kemenade
507b7d519a Fix LOG011 avoid pre-formatting log messages 2023-09-25 16:45:38 +03:00
nulano
73f55b4e01 remove redundant default value
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2023-01-28 15:35:33 +11:00
Mark Mayo
69baeccf2e some pylint warnings
Fixed some pylint issues
2022-10-13 15:20:11 +13:00
Hugo van Kemenade
fca64bc0d3 [Test] class names should be CamelCase 2022-04-11 15:29:01 +03:00
pre-commit-ci[bot]
52f29a537d [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-01-03 17:11:34 +00:00
Eric Soroos
1c872a9eda lint stuff 2021-04-10 16:58:01 +02:00
Eric Soroos
c94f66ad13 make sure we return a mark decorator 2021-04-10 12:03:15 +02:00
Eric Soroos
a3a69c8385 conditional mark for valgrind ignore 2021-04-09 23:53:24 +02:00
Latosha Maltba
52794432f0 Make code for ImageMagick/GraphicsMagick more symmetric 2021-03-22 19:50:06 +00:00
Andrew Murray
35943372f0 Removed CONVERT helper variables 2021-03-22 19:50:06 +00:00
Latosha Maltba
ef864d72f1 TestSuite: Add support for GraphicsMagick
Add support to run the tests using GraphicsMagick's "gm convert" instead
of ImageMagick's "convert".
2021-03-21 14:36:18 +00:00
Andrew Murray
b0af0d4076 Travis CI is no longer used 2020-12-19 21:57:32 +02:00
nulano
a3ab868b0f xfail tests failing on ppc64le on GHA
(cherry picked from commit 9c7fb5bd14c3064fede96131a0f7f67abf26a4e7)
2020-12-12 15:26:42 +01:00
nulano
b5fe0e7986 add helper.skip_unless_feature_version 2020-10-11 22:26:11 +01:00
Hugo van Kemenade
e0eec1eb56 Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
Hugo van Kemenade
10615a7da7 Upgrade Python syntax for 3.6+
Co-authored-by: nulano <nulano@nulano.eu>
2020-07-30 10:09:18 +03:00
nulano
fc92f56382 replace skip_known_bad_test with xfail 2020-06-14 20:21:26 +02:00
nulano
d54fee9863 move import 2020-05-25 22:21:51 +02:00
nulano
d2f90d6cac fix freetype and raqm on MSYS 2020-05-23 23:16:06 +02:00
Hugo
654229d1b9 GitHub Actions now sets CI=true 2020-04-16 20:42:29 +03:00
Andrew Murray
b602f365ae Removed PillowTestCase helper class 2020-03-28 12:51:28 +11:00
Hugo
2cc6a9a974 Convert to use pytest 2020-03-02 16:31:08 +02:00
Andrew Murray
8482919a37 Converted most assert statements to pytest 2020-02-23 00:06:21 +11:00
Jon Dufresne
4f185329f4 Streamline test skipping based on supported features
This adds a new test decorator: skip_unless_feature(). The argument is
the same as passed to features.check(). If the feature is not supported,
the test will be skipped.

This removes several kinds of boilerplate copied and pasted around tests
so test feature checking is handled and displayed more consistently.

Refs #4193
2020-02-18 13:07:01 -08:00
Jon Dufresne
e544fd5fb7 Simplify command discovery with stdlib shutil.which()
Use the builtin shutil.which() instead of reimplementing.

For the single use that used the output of the command, use
subprocess.run().
2020-02-14 14:55:46 -08:00