(self)
| 50 | self.assertEqual(len(fields(C)), 0) |
| 51 | |
| 52 | def test_one_field_no_default(self): |
| 53 | @dataclass |
| 54 | class C: |
| 55 | x: int |
| 56 | |
| 57 | o = C(42) |
| 58 | self.assertEqual(o.x, 42) |
| 59 | |
| 60 | def test_field_default_default_factory_error(self): |
| 61 | msg = "cannot specify both default and default_factory" |
nothing calls this directly
no test coverage detected