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

Method test_interned_string_in_frozenset

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

Source from the content-addressed store, hash-verified

1211
1212 @cpython_only
1213 def test_interned_string_in_frozenset(self):
1214 co = compile('res = a in {"str_value"}', '?', 'exec')
1215 v = self.find_const(co.co_consts, frozenset(('str_value',)))
1216 self.assertIsInterned(tuple(v)[0])
1217
1218 @cpython_only
1219 def test_interned_string_default(self):

Callers

nothing calls this directly

Calls 3

find_constMethod · 0.95
assertIsInternedMethod · 0.95
compileFunction · 0.50

Tested by

no test coverage detected