Skip to content

Commit d008d12

Browse files
authored
Merge pull request #8625 from radarhere/containerio
2 parents cf09e8e + aef3aa2 commit d008d12

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Tests/test_file_container.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
from PIL import ContainerIO, Image
66

7-
from .helper import hopper
8-
97
TEST_FILE = "Tests/images/dummy.container"
108

119

@@ -15,15 +13,15 @@ def test_sanity() -> None:
1513

1614

1715
def test_isatty() -> None:
18-
with hopper() as im:
19-
container = ContainerIO.ContainerIO(im, 0, 0)
16+
with open(TEST_FILE, "rb") as fh:
17+
container = ContainerIO.ContainerIO(fh, 0, 0)
2018

2119
assert container.isatty() is False
2220

2321

2422
def test_seekable() -> None:
25-
with hopper() as im:
26-
container = ContainerIO.ContainerIO(im, 0, 0)
23+
with open(TEST_FILE, "rb") as fh:
24+
container = ContainerIO.ContainerIO(fh, 0, 0)
2725

2826
assert container.seekable() is True
2927

0 commit comments

Comments
 (0)