mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 09:26:16 +03:00
Merge pull request #7739 from radarhere/test_image_results
Do not support using test-image-results to upload images after test failures
This commit is contained in:
commit
4175787c45
|
@ -25,13 +25,6 @@ if os.environ.get("SHOW_ERRORS"):
|
|||
uploader = "show"
|
||||
elif "GITHUB_ACTIONS" in os.environ:
|
||||
uploader = "github_actions"
|
||||
else:
|
||||
try:
|
||||
import test_image_results
|
||||
|
||||
uploader = "aws"
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
def upload(a: Image.Image, b: Image.Image) -> str | None:
|
||||
|
@ -46,8 +39,6 @@ def upload(a: Image.Image, b: Image.Image) -> str | None:
|
|||
a.save(os.path.join(tmpdir, "a.png"))
|
||||
b.save(os.path.join(tmpdir, "b.png"))
|
||||
return tmpdir
|
||||
elif uploader == "aws":
|
||||
return test_image_results.upload(a, b)
|
||||
return None
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user