(self, case, future_annotations)
| 2600 | @pytest.mark.parametrize("case", [1, 2, 3, 4, 5]) |
| 2601 | @pytest.mark.parametrize("future_annotations", [True, False]) |
| 2602 | def test_classvar(self, case, future_annotations): |
| 2603 | source = getattr(self, f"case{case}")() |
| 2604 | if future_annotations: |
| 2605 | source = " from __future__ import annotations\n" + source |
| 2606 | with temp_module(source) as mod: |
| 2607 | assert mod.Ex.__struct_fields__ == ("a", "b") |
| 2608 | assert mod.Ex.cv2 == 1 |
| 2609 | |
| 2610 | |
| 2611 | class TestPostInit: |
nothing calls this directly
no test coverage detected