From 4ead07b9e40302b7316f306e3e814640781e64c5 Mon Sep 17 00:00:00 2001 From: Bobronium Date: Fri, 5 Dec 2025 22:43:10 +0100 Subject: [PATCH] gh-142254: add @cpython_only on tests relying on deepcopy implementation --- Lib/test/test_copy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_copy.py b/Lib/test/test_copy.py index cfef24727e8c82..7a5bb34c254f70 100644 --- a/Lib/test/test_copy.py +++ b/Lib/test/test_copy.py @@ -433,12 +433,14 @@ def test_deepcopy_reflexive_dict(self): self.assertIs(y['foo'], y) self.assertEqual(len(y), 1) + @support.cpython_only def test_deepcopy_keepalive(self): memo = {} x = [] y = copy.deepcopy(x, memo) self.assertIs(memo[id(memo)][0], x) + @support.cpython_only def test_deepcopy_dont_memo_immutable(self): memo = {} x = [1, 2, 3, 4]