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

Method test_interned_string_in_tuple

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

Source from the content-addressed store, hash-verified

1205
1206 @cpython_only
1207 def test_interned_string_in_tuple(self):
1208 co = compile('res = ("str_value",)', '?', 'exec')
1209 v = self.find_const(co.co_consts, ('str_value',))
1210 self.assertIsInterned(v[0])
1211
1212 @cpython_only
1213 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