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

Method test_interned_string_with_null

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

Source from the content-addressed store, hash-verified

1221 @cpython_only
1222 @unittest.skipIf(Py_GIL_DISABLED, "free-threaded build interns all string constants")
1223 def test_interned_string_with_null(self):
1224 co = compile(r'res = "str\0value!"', '?', 'exec')
1225 v = self.find_const(co.co_consts, 'str\0value!')
1226 self.assertIsNotInterned(v)
1227
1228 @cpython_only
1229 @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