Skip to content

Commit e7a7ea8

Browse files
authored
Remove write method from test (#9806)
2 parents d964f6e + 4eec8f7 commit e7a7ea8

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

Tests/test_image.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import warnings
1010
from pathlib import Path
1111
from types import ModuleType
12-
from typing import IO, Any
12+
from typing import IO
1313

1414
import pytest
1515

@@ -197,17 +197,6 @@ def test_fp_name(self, tmp_path: Path) -> None:
197197
class FP(io.BytesIO):
198198
name: Path
199199

200-
if sys.version_info >= (3, 12):
201-
from collections.abc import Buffer
202-
203-
def write(self, data: Buffer) -> int:
204-
return len(data)
205-
206-
else:
207-
208-
def write(self, data: Any) -> int:
209-
return len(data)
210-
211200
fp = FP()
212201
fp.name = temp_file
213202

0 commit comments

Comments
 (0)