From ed3ae48fecb01970705fb8e99910f72d8da6e2fe Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Sat, 23 Oct 2021 11:07:59 +0000 Subject: Adding metadata --- .../cssutils/files/cssutils-2.3.0-fix-py3.10.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 dev-python/cssutils/files/cssutils-2.3.0-fix-py3.10.patch (limited to 'dev-python/cssutils/files/cssutils-2.3.0-fix-py3.10.patch') diff --git a/dev-python/cssutils/files/cssutils-2.3.0-fix-py3.10.patch b/dev-python/cssutils/files/cssutils-2.3.0-fix-py3.10.patch new file mode 100644 index 000000000000..540fc7a1cc03 --- /dev/null +++ b/dev-python/cssutils/files/cssutils-2.3.0-fix-py3.10.patch @@ -0,0 +1,21 @@ +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 +https://github.com/jaraco/cssutils/pull/17 + +--- a/cssutils/tests/basetest.py ++++ b/cssutils/tests/basetest.py +@@ -126,7 +126,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: -- cgit v1.3.1