From 355b1795dde77bd4b49d8df35377230fdb503802 Mon Sep 17 00:00:00 2001 From: Arthur Zamarin 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 --- cssutils/tests/basetest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cssutils/tests/basetest.py b/cssutils/tests/basetest.py index ff628cbd..a51efa1e 100644 --- a/cssutils/tests/basetest.py +++ b/cssutils/tests/basetest.py @@ -126,7 +126,7 @@ def assertRaisesMsg(self, excClass, msg, callableObj, *args, **kwargs): 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: