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

Method test_interned_string

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

Source from the content-addressed store, hash-verified

1196
1197 @cpython_only
1198 def test_interned_string(self):
1199 co = compile('res = "str_value"', '?', 'exec')
1200 v = self.find_const(co.co_consts, 'str_value')
1201 self.assertIsInterned(v)
1202
1203 @cpython_only
1204 def test_interned_string_in_tuple(self):

Callers

nothing calls this directly

Calls 3

find_constMethod · 0.95
assertIsInternedMethod · 0.95
compileFunction · 0.50

Tested by

no test coverage detected