]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Skip test as cpython_only that checks whether setattr interns the attribute or not...
authorCF Bolz-Tereick <cfbolz@gmx.de>
Sat, 31 May 2025 11:38:05 +0000 (13:38 +0200)
committerGitHub <noreply@github.com>
Sat, 31 May 2025 11:38:05 +0000 (13:38 +0200)
Skip test that checks whether setattr interns the attribute or not

The details of when a string is being interned or not is implementation
dependent.

Lib/test/test_class.py

index 4c12d43556fc2a5c339996912e2de2539d316621..8c7a62a74ba90e0b9d736cbdf47fbfa4c1bb6227 100644 (file)
@@ -652,6 +652,7 @@ class ClassTests(unittest.TestCase):
         a = A(hash(A.f)^(-1))
         hash(a.f)
 
+    @cpython_only
     def testSetattrWrapperNameIntern(self):
         # Issue #25794: __setattr__ should intern the attribute name
         class A: