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

Method test_interned_string_with_null

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

Source from the content-addressed store, hash-verified

1224 @cpython_only
1225 @unittest.skipIf(Py_GIL_DISABLED, "free-threaded build interns all string constants")
1226 def test_interned_string_with_null(self):
1227 co = compile(r'res = "str\0value!"', '?', 'exec')
1228 v = self.find_const(co.co_consts, 'str\0value!')
1229 self.assertIsNotInterned(v)
1230
1231 @cpython_only
1232 @unittest.skipUnless(Py_GIL_DISABLED, "does not intern all constants")

Callers

nothing calls this directly

Calls 3

find_constMethod · 0.95
assertIsNotInternedMethod · 0.95
compileFunction · 0.50

Tested by

no test coverage detected