mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-27 17:30:40 +03:00
Removed support for test-image-results
This commit is contained in:
parent
1891b61f73
commit
4674195321
|
@ -25,13 +25,6 @@ if os.environ.get("SHOW_ERRORS"):
|
||||||
uploader = "show"
|
uploader = "show"
|
||||||
elif "GITHUB_ACTIONS" in os.environ:
|
elif "GITHUB_ACTIONS" in os.environ:
|
||||||
uploader = "github_actions"
|
uploader = "github_actions"
|
||||||
else:
|
|
||||||
try:
|
|
||||||
import test_image_results
|
|
||||||
|
|
||||||
uploader = "aws"
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
def upload(a: Image.Image, b: Image.Image) -> str | None:
|
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"))
|
a.save(os.path.join(tmpdir, "a.png"))
|
||||||
b.save(os.path.join(tmpdir, "b.png"))
|
b.save(os.path.join(tmpdir, "b.png"))
|
||||||
return tmpdir
|
return tmpdir
|
||||||
elif uploader == "aws":
|
|
||||||
return test_image_results.upload(a, b)
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user