(self)
| 4217 | self.assertEqual(unpickled(), 44) |
| 4218 | |
| 4219 | def test_private_nested_classes(self): |
| 4220 | if self.py_version < (3, 15): |
| 4221 | self.skipTest('not supported in Python < 3.15') |
| 4222 | cls1 = PrivateNestedClasses.get_nested() |
| 4223 | cls2 = cls1.get_nested2() |
| 4224 | for proto in protocols: |
| 4225 | with self.subTest(proto=proto): |
| 4226 | unpickled = self.loads(self.dumps(cls1, proto)) |
| 4227 | self.assertIs(unpickled, cls1) |
| 4228 | unpickled = self.loads(self.dumps(cls2, proto)) |
| 4229 | self.assertIs(unpickled, cls2) |
| 4230 | |
| 4231 | def test_object_with_attrs(self): |
| 4232 | obj = Object() |
nothing calls this directly
no test coverage detected