From 1f5e707829bce3d9db6df549383962ff41680def Mon Sep 17 00:00:00 2001 From: Zanie Date: Wed, 12 Jul 2023 11:17:24 -0500 Subject: [PATCH] Remove test for empty generic `class Foo[]: ...` Not valid syntax --- parser/src/parser.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/parser/src/parser.rs b/parser/src/parser.rs index fd0f739932..852cdfadaf 100644 --- a/parser/src/parser.rs +++ b/parser/src/parser.rs @@ -632,18 +632,6 @@ class Foo(A, B): insta::assert_debug_snapshot!(ast::Suite::parse(source, "").unwrap()); } - - #[test] - #[cfg(feature = "all-nodes-with-ranges")] - fn test_parse_class_with_empty_generic() { - let source = "\ -class Foo[](A, B): - pass -"; - insta::assert_debug_snapshot!(ast::Suite::parse(source, "").unwrap()); - } - - #[test] #[cfg(feature = "all-nodes-with-ranges")] fn test_parse_class_with_generic_type() {