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
Hugo
38bf862185
Replace PillowTestCase.assert_warning with pytest.warns
2020-02-03 11:11:32 +02:00
Hugo
a4bf9fa036
Convert most PillowTestCase methods to pytest
2020-02-02 12:26:01 +02:00
Jon Dufresne
63729766c4
Remove unnecessary coerce to float
...
In Python 3, the division operator is floating point division. No longer
need to coerce integers to floating point numbers before division.
2020-01-26 06:33:18 -08:00
Andrew Murray
d324560891
Removed print
2020-01-14 19:44:10 +11:00
Andrew Murray
a4f06b93f9
Removed unused function
2020-01-14 19:40:21 +11:00
Hugo
5e9336af4c
Use sys.byteorder == "big"
2020-01-08 15:43:28 +02:00
Hugo
f96763826c
Test on new Travis CPUs https://blog.travis-ci.com/2019-11-12-multi-cpu-architecture-ibm-power-ibm-z
2020-01-08 15:43:27 +02:00
Hugo
e5486b40f8
Merge remote-tracking branch 'upstream/master' into rm-2.7
2019-11-18 13:56:42 +02:00
nulano
197fb91574
upload image errors to GitHub Actions
2019-11-17 21:49:58 +11:00
Hugo van Kemenade
40133cfc74
Merge branch 'master' into rm-2.7
2019-10-26 09:07:44 +03:00
Hugo van Kemenade
1a9be9ccbd
Simpilify PillowTestCase.delete_tempfile for pytest ( #4139 )
...
Simpilify PillowTestCase.delete_tempfile for pytest
2019-10-22 14:14:20 +03:00
Hugo van Kemenade
28ff798889
Merge branch 'master' into rm-2.7
2019-10-15 12:11:43 +03:00
Jon Dufresne
9981568982
Simpilify PillowTestCase.delete_tempfile for pytest
...
As the test suite always runs with pytest now, self.currentResult is
always None. Using this, can remove unused code.
2019-10-12 11:13:14 -07:00
Jon Dufresne
0affbacd5e
Remove unused arguments from PillowTestCase.skipKnwonBadTest()
2019-10-12 08:17:20 -07:00
Andrew Murray
4140cd807b
Merge branch 'master' into rm-2.7
2019-10-12 18:03:58 +11:00