Fix typos in test comments

- mmaped -> mmapped (Tests/test_file_tiff.py, Tests/test_image.py)
- co-ordinates -> coordinates (Tests/test_imagefont.py), matching the
  spelling already used everywhere else in the codebase

[ci skip]
This commit is contained in:
mokashang 2026-05-12 17:57:21 -07:00
parent 9289863c2c
commit 9375b1f218
3 changed files with 4 additions and 4 deletions

View File

@ -1041,7 +1041,7 @@ class TestFileTiffW32:
def test_fd_leak(self, tmp_path: Path) -> None:
tmpfile = tmp_path / "temp.tif"
# this is an mmaped file.
# this is an mmapped file.
with Image.open("Tests/images/uint16_1_4660.tif") as im:
im.save(tmpfile)

View File

@ -244,7 +244,7 @@ class TestImage:
@pytest.mark.skipif(is_win32(), reason="Test requires opening tempfile twice")
@pytest.mark.skipif(
sys.platform == "cygwin",
reason="Test requires opening an mmaped file for writing",
reason="Test requires opening an mmapped file for writing",
)
def test_readonly_save(self, tmp_path: Path) -> None:
temp_file = tmp_path / "temp.bmp"

View File

@ -365,7 +365,7 @@ def test_rotated_transposed_font(
bbox_b[2] - bbox_b[0],
)
# Check top left co-ordinates are correct
# Check top left coordinates are correct
assert bbox_b[:2] == (20, 20)
# text length is undefined for vertical text
@ -410,7 +410,7 @@ def test_unrotated_transposed_font(
bbox_b[3] - bbox_b[1],
)
# Check top left co-ordinates are correct
# Check top left coordinates are correct
assert bbox_b[:2] == (20, 20)
assert length_a == length_b