MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_interned_string_default

Method test_interned_string_default

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

Source from the content-addressed store, hash-verified

1214
1215 @cpython_only
1216 def test_interned_string_default(self):
1217 def f(a='str_value'):
1218 return a
1219 self.assertIsInterned(f())
1220
1221 @cpython_only
1222 @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