Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
5dc61cb0
Unverified
Commit
5dc61cb0
authored
Jan 06, 2022
by
Nicolas Hug
Committed by
GitHub
Jan 06, 2022
Browse files
Skip jpeg comparison tests with PIL (#5169)
parent
f948d797
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
test/test_image.py
test/test_image.py
+4
-2
No files found.
test/test_image.py
View file @
5dc61cb0
...
...
@@ -478,7 +478,8 @@ def test_write_jpeg_reference(img_path, tmpdir):
assert_equal
(
torch_bytes
,
pil_bytes
)
@
pytest
.
mark
.
skipif
(
IS_WINDOWS
,
reason
=
(
"this test fails on windows because PIL uses libjpeg-turbo on windows"
))
# TODO: Remove the skip. See https://github.com/pytorch/vision/issues/5162.
@
pytest
.
mark
.
skip
(
"this test fails because PIL uses libjpeg-turbo"
)
@
pytest
.
mark
.
parametrize
(
"img_path"
,
[
pytest
.
param
(
jpeg_path
,
id
=
_get_safe_image_name
(
jpeg_path
))
for
jpeg_path
in
get_images
(
ENCODE_JPEG
,
".jpg"
)],
...
...
@@ -497,7 +498,8 @@ def test_encode_jpeg(img_path):
assert_equal
(
encoded_jpeg_torch
,
encoded_jpeg_pil
)
@
pytest
.
mark
.
skipif
(
IS_WINDOWS
,
reason
=
(
"this test fails on windows because PIL uses libjpeg-turbo on windows"
))
# TODO: Remove the skip. See https://github.com/pytorch/vision/issues/5162.
@
pytest
.
mark
.
skip
(
"this test fails because PIL uses libjpeg-turbo"
)
@
pytest
.
mark
.
parametrize
(
"img_path"
,
[
pytest
.
param
(
jpeg_path
,
id
=
_get_safe_image_name
(
jpeg_path
))
for
jpeg_path
in
get_images
(
ENCODE_JPEG
,
".jpg"
)],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment