diff --git a/tests/queries/test_qs_combinators.py b/tests/queries/test_qs_combinators.py index 8e2e14403d..9c6fd474ca 100644 --- a/tests/queries/test_qs_combinators.py +++ b/tests/queries/test_qs_combinators.py @@ -268,6 +268,8 @@ class QuerySetSetOperationTests(TestCase): list(qs1.union(qs2).order_by('num')) with self.assertRaisesMessage(DatabaseError, msg): list(qs1.union(qs2).order_by(F('num'))) + with self.assertRaisesMessage(DatabaseError, msg): + list(qs1.union(qs2).order_by(F('num').desc())) # switched order, now 'exists' again: list(qs2.union(qs1).order_by('num'))