Skip to content

Commit

Permalink
Fix expected error message for python 3.10
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
arthurzam committed Oct 22, 2021
1 parent 4317993 commit 355b179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cssutils/tests/basetest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 355b179

Please sign in to comment.