]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-116738: Fix `test_json_mutating_exact_dict` (#138339)
authorPieter Eendebak <pieter.eendebak@gmail.com>
Mon, 1 Sep 2025 16:14:19 +0000 (18:14 +0200)
committerGitHub <noreply@github.com>
Mon, 1 Sep 2025 16:14:19 +0000 (21:44 +0530)
Fix test_json_mutating_exact_dic

Lib/test/test_free_threading/test_json.py

index 8a541e960a63ad61441dda9929749931e99f56b7..010eb322a15b844e7d01799e0af1b6e33a64c09b 100644 (file)
@@ -56,7 +56,7 @@ class TestJsonEncoding(CTest):
                     if len(d) > 5:
                         try:
                             key = list(d)[0]
-                            d.pop()
+                            d.pop(key)
                         except (KeyError, IndexError):
                             pass
                     else: