Skip to content

Commit 1b3fa95

Browse files
migeed-zmeta-codesync[bot]
authored andcommitted
Modify unittest according to new conformance changes
Summary: If python/typing#2175 is merged, then we don't need the previous text. Reviewed By: grievejia Differential Revision: D93298758 fbshipit-source-id: 19fda9df9d32643def051aa70a179f446c111fa2
1 parent dbc5c06 commit 1b3fa95

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pyrefly/lib/test/returns.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,7 @@ def f(b: bool) -> int:
231231
);
232232

233233
testcase!(
234-
bug = "conformance: Unreachable code after NoReturn should not be type-checked",
235-
test_return_never_unreachable_wrong_type,
234+
test_return_never_unreachable,
236235
r#"
237236
from typing import NoReturn
238237
@@ -243,7 +242,6 @@ def f(x: int) -> int:
243242
if x > 0:
244243
return x
245244
stop()
246-
return "wrong type" # E: Returned type `Literal['wrong type']` is not assignable to declared return type `int`
247245
"#,
248246
);
249247

0 commit comments

Comments
 (0)