(self)
| 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") |
nothing calls this directly
no test coverage detected