Skip to content

Commit 2cbd423

Browse files
committed
Keep factory retry control aligned with propagated failures
1 parent f43a202 commit 2cbd423

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎tests/test_dataclass_source_preparation.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,11 @@ class Declaration:
6262

6363
SignatureAnalyzer.prepare_dataclass_declaration(Declaration)
6464
assert calls == []
65-
assert SignatureAnalyzer._analyze_dataclass(Declaration) == {}
65+
with pytest.raises(RuntimeError):
66+
SignatureAnalyzer._analyze_dataclass(Declaration)
6667
assert Declaration not in SignatureAnalyzer._dataclass_analysis_cache
67-
assert SignatureAnalyzer._analyze_dataclass(Declaration) == {}
68+
with pytest.raises(RuntimeError):
69+
SignatureAnalyzer._analyze_dataclass(Declaration)
6870
assert calls == [1, 1]
6971

7072

0 commit comments

Comments
 (0)