MCPcopy Index your code
hub / github.com/python/cpython / test_interned_string_default

Method test_interned_string_default

Lib/test/test_code.py:1219–1222  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1217
1218 @cpython_only
1219 def test_interned_string_default(self):
1220 def f(a='str_value'):
1221 return a
1222 self.assertIsInterned(f())
1223
1224 @cpython_only
1225 @unittest.skipIf(Py_GIL_DISABLED, "free-threaded build interns all string constants")

Callers

nothing calls this directly

Calls 2

assertIsInternedMethod · 0.95
fFunction · 0.70

Tested by

no test coverage detected