Skip to content

Commit

Permalink
[red-knot] remove duplicate test from bad merge (#11787)
Browse files Browse the repository at this point in the history
Somehow a merge of a PR that had all-green CI duplicated this test when
it merged into main, breaking the build.
  • Loading branch information
carljm authored Jun 6, 2024
1 parent cd101c8 commit 540d768
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions crates/red_knot/src/semantic/types/infer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,22 +626,4 @@ mod tests {

assert_public_type(&case, "a", "x", "Literal[C1] | Literal[C2] | Literal[C3]")
}

#[test]
fn ifexpr_nested() -> anyhow::Result<()> {
let case = create_test()?;

write_to_path(
&case,
"a.py",
"
class C1: pass
class C2: pass
class C3: pass
x = C1 if flag else C2 if flag2 else C3
",
)?;

assert_public_type(&case, "a", "x", "(Literal[C1] | Literal[C2] | Literal[C3])")
}
}

0 comments on commit 540d768

Please sign in to comment.