From 6f42b675c7e2f209b918a3394922af8d0401a016 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sat, 14 Dec 2024 10:35:06 -0500 Subject: [PATCH] [5.1.x] Refs #29850 -- Removed obsolete test_window_frame_raise_not_supported_error. This NotSupportedError was removed in 6375cee490725969b4f67b3c988ef01350c1ad6d because it will never be reached due to the same exception raised by Window.as_sql(). Backport of 94436dee57ce677e6ffcbb0438e0441d5c261d62 from main. --- tests/backends/base/test_operations.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/backends/base/test_operations.py b/tests/backends/base/test_operations.py index 8df02ee76b..36891323fd 100644 --- a/tests/backends/base/test_operations.py +++ b/tests/backends/base/test_operations.py @@ -174,12 +174,6 @@ class DatabaseOperationTests(TestCase): def setUp(self): self.ops = BaseDatabaseOperations(connection=connection) - @skipIfDBFeature("supports_over_clause") - def test_window_frame_raise_not_supported_error(self): - msg = "This backend does not support window expressions." - with self.assertRaisesMessage(NotSupportedError, msg): - self.ops.window_frame_rows_start_end() - @skipIfDBFeature("can_distinct_on_fields") def test_distinct_on_fields(self): msg = "DISTINCT ON fields is not supported by this database backend"