From 540d76892f2651f8a98881100eadeab4e24c7aa4 Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Thu, 6 Jun 2024 16:40:19 -0600 Subject: [PATCH] [red-knot] remove duplicate test from bad merge (#11787) Somehow a merge of a PR that had all-green CI duplicated this test when it merged into main, breaking the build. --- crates/red_knot/src/semantic/types/infer.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/crates/red_knot/src/semantic/types/infer.rs b/crates/red_knot/src/semantic/types/infer.rs index 435790d7b3..acff72b654 100644 --- a/crates/red_knot/src/semantic/types/infer.rs +++ b/crates/red_knot/src/semantic/types/infer.rs @@ -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])") - } }