(self)
| 491 | _interpreters.set___main___attrs(self.id, 1) |
| 492 | |
| 493 | def test_invalid_shared_none(self): |
| 494 | msg = r'must be dict, not None' |
| 495 | with self.assertRaisesRegex(TypeError, msg): |
| 496 | _interpreters.exec(self.id, 'a', shared=None) |
| 497 | with self.assertRaisesRegex(TypeError, msg): |
| 498 | _interpreters.run_string(self.id, 'a', shared=None) |
| 499 | with self.assertRaisesRegex(TypeError, msg): |
| 500 | _interpreters.run_func(self.id, lambda: None, shared=None) |
| 501 | with self.assertRaisesRegex(TypeError, msg): |
| 502 | _interpreters.set___main___attrs(self.id, None) |
| 503 | |
| 504 | def test_invalid_shared_encoding(self): |
| 505 | # See https://github.com/python/cpython/issues/127196 |
nothing calls this directly
no test coverage detected