From 62ad6d5a92a1751b9299a29d17d7f0e65743b192 Mon Sep 17 00:00:00 2001 From: Manuel Giffels Date: Mon, 29 Nov 2021 17:43:45 +0100 Subject: [PATCH] =?UTF-8?q?Time=20to=20get=20rid=20of=20Python3.6=20?= =?UTF-8?q?=F0=9F=98=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/plugins_t/test_sqliteregistry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/plugins_t/test_sqliteregistry.py b/tests/plugins_t/test_sqliteregistry.py index 130acd7e..883cb5b1 100644 --- a/tests/plugins_t/test_sqliteregistry.py +++ b/tests/plugins_t/test_sqliteregistry.py @@ -210,7 +210,7 @@ def fetch_all(): run_async( self.registry.notify, BootingState(), self.test_resource_attributes ) - self.assertTrue("UNIQUE constraint failed" in str(ie.exception)) + self.assertTrue("unique" in str(ie.exception).lower()) run_async( self.registry.notify, @@ -250,7 +250,7 @@ def fetch_all(): with self.assertRaises(sqlite3.IntegrityError) as ie: run_async(self.registry.insert_resource, bind_parameters) - self.assertTrue("UNIQUE constraint failed" in str(ie.exception)) + self.assertTrue("unique" in str(ie.exception).lower()) self.assertListEqual([self.test_notify_result], fetch_all())