https://github.com/python/cpython/commit/0d02e4d7d35b5c173a8f62342264389cb1f18601
commit: 0d02e4d7d35b5c173a8f62342264389cb1f18601
branch: main
author: Pieter Eendebak <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2025-09-01T21:44:19+05:30
summary:

gh-116738: Fix `test_json_mutating_exact_dict` (#138339)

Fix test_json_mutating_exact_dic

files:
M Lib/test/test_free_threading/test_json.py

diff --git a/Lib/test/test_free_threading/test_json.py 
b/Lib/test/test_free_threading/test_json.py
index 8a541e960a63ad..010eb322a15b84 100644
--- a/Lib/test/test_free_threading/test_json.py
+++ b/Lib/test/test_free_threading/test_json.py
@@ -56,7 +56,7 @@ def worker(barrier, data, index):
                     if len(d) > 5:
                         try:
                             key = list(d)[0]
-                            d.pop()
+                            d.pop(key)
                         except (KeyError, IndexError):
                             pass
                     else:

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to