From 27eac13767225ead8672862e06895791a71fba5b Mon Sep 17 00:00:00 2001 From: Itai Shirav Date: Mon, 16 Mar 2020 10:41:03 +0200 Subject: [PATCH] Fix tests for ClickHouse v20.3 --- tests/test_readonly.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_readonly.py b/tests/test_readonly.py index 4361ad7..f7c8f49 100644 --- a/tests/test_readonly.py +++ b/tests/test_readonly.py @@ -39,7 +39,7 @@ class ReadonlyTestCase(TestCaseWithData): self.assertEqual(exc.code, 164) print(exc.message) if self.database.server_version >= (20, 3): - self.assertTrue(exc.message.startswith('default: Cannot execute query in readonly mode')) + self.assertTrue('Cannot execute query in readonly mode' in exc.message) elif drop_table: self.assertTrue(exc.message.startswith('Cannot drop table in readonly mode')) else: