From 355b1795dde77bd4b49d8df35377230fdb503802 Mon Sep 17 00:00:00 2001
From: Arthur Zamarin <arthurzam@gmail.com>
Date: Fri, 22 Oct 2021 17:48:28 +0300
Subject: [PATCH] Fix expected error message for python 3.10

python 3.10 adds some words to it's errors, so catch if our expected
are contained in the actual output

Signed-off-by: Arthur Zamarin <arthurzam@gmail.com>
---
 cssutils/tests/basetest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/src/cssutils/tests/basetest.py
+++ b/src/cssutils/tests/basetest.py
@@ -134,7 +134,7 @@ class BaseTestCase(unittest.TestCase):
             if not msg:
                 # No message provided: any message is fine.
                 return
-            elif excMsg == msg:
+            elif msg in excMsg:
                 # Message provided, and we got the right message: passes.
                 return
             else:
