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

Method test_interned_string_in_tuple

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

Source from the content-addressed store, hash-verified

1202
1203 @cpython_only
1204 def test_interned_string_in_tuple(self):
1205 co = compile('res = ("str_value",)', '?', 'exec')
1206 v = self.find_const(co.co_consts, ('str_value',))
1207 self.assertIsInterned(v[0])
1208
1209 @cpython_only
1210 def test_interned_string_in_frozenset(self):

Callers

nothing calls this directly

Calls 3

find_constMethod · 0.95
assertIsInternedMethod · 0.95
compileFunction · 0.50

Tested by

no test coverage detected