]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typos in test_tempfile.py (#102841)
authorJakobDev <jakobdev@gmx.de>
Sun, 9 Apr 2023 08:13:40 +0000 (10:13 +0200)
committerGitHub <noreply@github.com>
Sun, 9 Apr 2023 08:13:40 +0000 (13:43 +0530)
Lib/test/test_tempfile.py

index 90155487cff5859f3e68f0135c81ce9d8d77cf03..11a43aca17e88a5a01f55599c66dc957e28c2d1b 100644 (file)
@@ -1016,7 +1016,7 @@ class TestNamedTemporaryFile(BaseTestCase):
         self.assertRaises(ValueError, use_closed)
 
     def test_context_man_not_del_on_close_if_delete_on_close_false(self):
-        # Issue gh-58451: tempfile.NamedTemporaryFile is not particulary useful
+        # Issue gh-58451: tempfile.NamedTemporaryFile is not particularly useful
         # on Windows
         # A NamedTemporaryFile is NOT deleted when closed if
         # delete_on_close=False, but is deleted on context manager exit
@@ -1608,7 +1608,7 @@ class TestTemporaryDirectory(BaseTestCase):
         finally:
             os.rmdir(dir)
 
-    def test_explict_cleanup_ignore_errors(self):
+    def test_explicit_cleanup_ignore_errors(self):
         """Test that cleanup doesn't return an error when ignoring them."""
         with tempfile.TemporaryDirectory() as working_dir:
             temp_dir = self.do_create(