From 9375b1f218be4433ade68a962ff358a62b0aaa33 Mon Sep 17 00:00:00 2001 From: mokashang Date: Tue, 12 May 2026 17:57:21 -0700 Subject: [PATCH] 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] --- Tests/test_file_tiff.py | 2 +- Tests/test_image.py | 2 +- Tests/test_imagefont.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/test_file_tiff.py b/Tests/test_file_tiff.py index e442471d1ca..f2983d54b66 100644 --- a/Tests/test_file_tiff.py +++ b/Tests/test_file_tiff.py @@ -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) diff --git a/Tests/test_image.py b/Tests/test_image.py index 81bd4729926..1a2f1dc7bd0 100644 --- a/Tests/test_image.py +++ b/Tests/test_image.py @@ -244,7 +244,7 @@ def test_internals(self) -> None: @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" diff --git a/Tests/test_imagefont.py b/Tests/test_imagefont.py index d0b458d6b77..40947470708 100644 --- a/Tests/test_imagefont.py +++ b/Tests/test_imagefont.py @@ -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