mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2025-02-19 18:00:32 +03:00
fix test for python 3
This commit is contained in:
parent
acf2f7a189
commit
378cae88bc
|
@ -61,7 +61,7 @@ class ReadonlyTestCase(TestCaseWithData):
|
|||
def test_nonexisting_readonly_database(self):
|
||||
with self.assertRaises(DatabaseException) as cm:
|
||||
db = Database('dummy', readonly=True)
|
||||
self.assertEqual(cm.exception.message, 'Database does not exist, and cannot be created under readonly connection')
|
||||
self.assertEqual(str(cm.exception), 'Database does not exist, and cannot be created under readonly connection')
|
||||
|
||||
|
||||
class ReadOnlyModel(Model):
|
||||
|
|
Loading…
Reference in New Issue
Block a user