summary refs log tree commit diff
path: root/tests/storage
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2021-04-08 13:45:19 +0100
committerRichard van der Hoff <richard@matrix.org>2021-04-08 16:42:32 +0100
commit3ada9b42640137d908fa2db64e78f3f79d11dd3a (patch)
treef27106f38f792717c64eb1b885fbed49f5a6ae30 /tests/storage
parentRequire py36 and Postgres 9.6 (diff)
downloadsynapse-3ada9b42640137d908fa2db64e78f3f79d11dd3a.tar.xz
Drop support for sqlite<3.22 as well
Diffstat (limited to 'tests/storage')
-rw-r--r--tests/storage/test_database.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/tests/storage/test_database.py b/tests/storage/test_database.py
index 5a77c84962..1bba58fc03 100644
--- a/tests/storage/test_database.py
+++ b/tests/storage/test_database.py
@@ -36,17 +36,7 @@ def _stub_db_engine(**kwargs) -> BaseDatabaseEngine:
 
 class TupleComparisonClauseTestCase(unittest.TestCase):
     def test_native_tuple_comparison(self):
-        db_engine = _stub_db_engine(supports_tuple_comparison=True)
+        db_engine = _stub_db_engine()
         clause, args = make_tuple_comparison_clause(db_engine, [("a", 1), ("b", 2)])
         self.assertEqual(clause, "(a,b) > (?,?)")
         self.assertEqual(args, [1, 2])
-
-    def test_emulated_tuple_comparison(self):
-        db_engine = _stub_db_engine(supports_tuple_comparison=False)
-        clause, args = make_tuple_comparison_clause(
-            db_engine, [("a", 1), ("b", 2), ("c", 3)]
-        )
-        self.assertEqual(
-            clause, "(a >= ? AND (a > ? OR (b >= ? AND (b > ? OR c > ?))))"
-        )
-        self.assertEqual(args, [1, 1, 2, 2, 3])