We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad6af24 commit 903cc96Copy full SHA for 903cc96
1 file changed
Lib/test/test_code.py
@@ -1280,13 +1280,15 @@ class MyInt(int):
1280
self.assertEqual(code.co_consts[2], code.co_consts[3])
1281
1282
@cpython_only
1283
+ @unittest.skipIf(Py_GIL_DISABLED, "free-threaded build interns all string constants")
1284
def test__Py_DECLARE_STR_is_interned(self):
1285
for global_string in iter_global_strings():
1286
# compile given string to a codeobject
1287
global_string = eval(f"'{global_string}'")
1288
self.assertIsInterned(global_string)
1289
1290
1291
1292
def test_non_internable_strings_not_interned(self):
1293
self.assertIsNotInterned("not-internable")
1294
self.assertIsNotInterned("not.internable")
0 commit comments