From e2cdbc585a89e130d103307420acf34f232ba699 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 11 Jun 2020 10:36:24 +0200 Subject: [PATCH] [3.0.x] Refs #31660 -- Fixed annotations.tests crash on MySQL. Follow up to be7a295141337189b9eceea506489bdfe07f199e. --- tests/annotations/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/annotations/tests.py b/tests/annotations/tests.py index 0c6381c773..bbd35fbd4f 100644 --- a/tests/annotations/tests.py +++ b/tests/annotations/tests.py @@ -636,7 +636,7 @@ class NonAggregateAnnotationTestCase(TestCase): ]) @skipIf( - connection.vendor == 'mysql' and 'ONLY_FULL_GROUP_BY' in connection.sql_mode, + connection.vendor == 'mysql', 'GROUP BY optimization does not work properly when ONLY_FULL_GROUP_BY ' 'mode is enabled on MySQL, see #31331.', )