Skip to content

Commit

Permalink
Don't use Pillow for IT.
Browse files Browse the repository at this point in the history
There was no proncipled reason to use it. Neither the originating commit
or its originiating issue refer to Pillow and the tests themselves don't
implicate anything being required except a 3rdparty lib.

See:
+ pex-tool#521
+ pex-tool#508
  • Loading branch information
jsirois committed Aug 11, 2022
1 parent d3f208e commit bdcce7a
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions tests/integration/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,24 +735,20 @@ def test_pex_resource_bundling():
assert stdout == b"hello\n"


def test_entry_point_verification_3rdparty():
# type: () -> None
with temporary_dir() as td:
pex_out_path = os.path.join(td, "pex.pex")
res = run_pex_command(
["Pillow==5.2.0", "-e", "PIL:Image", "-o", pex_out_path, "--validate-entry-point"]
)
res.assert_success()
def test_entry_point_verification_3rdparty(tmpdir):
# type: (Any) -> None
pex_out_path = os.path.join(str(tmpdir), "pex.pex")
run_pex_command(
args=["ansicolors==1.1.8", "-e", "colors:red", "-o", pex_out_path, "--validate-entry-point"]
).assert_success()


def test_invalid_entry_point_verification_3rdparty():
# type: () -> None
with temporary_dir() as td:
pex_out_path = os.path.join(td, "pex.pex")
res = run_pex_command(
["Pillow==5.2.0", "-e", "PIL:invalid", "-o", pex_out_path, "--validate-entry-point"]
)
res.assert_failure()
def test_invalid_entry_point_verification_3rdparty(tmpdir):
# type: (Any) -> None
pex_out_path = os.path.join(str(tmpdir), "pex.pex")
run_pex_command(
args=["ansicolors==1.1.8", "-e", "colors:bad", "-o", pex_out_path, "--validate-entry-point"]
).assert_failure()


def test_multiplatform_entrypoint():
Expand Down

0 comments on commit bdcce7a

Please sign in to comment.