Skip to content
Snippets Groups Projects
Commit 35be10cb authored by Sandro Tosi's avatar Sandro Tosi
Browse files

import upstream PR to fix tests under python 3.10; Closes: #1009469

parent b184a1b0
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,11 @@ cssutils (1.0.2-4) UNRELEASED; urgency=medium
* Bump debhelper from old 12 to 13.
* Update standards version to 4.5.1, no changes needed.
-- Ondřej Nový <onovy@debian.org> Thu, 24 Sep 2020 09:00:29 +0200
[ Sandro Tosi ]
* debian/patches/PR17.patch
- import upstream PR to fix tests under python 3.10; Closes: #1009469
-- Sandro Tosi <morph@debian.org> Sun, 24 Apr 2022 00:31:05 -0400
cssutils (1.0.2-3) unstable; urgency=medium
......
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:
0001-test-Adjust-to-current-python-chardet.patch
0002-Create-our-py2-and-py3-executables-to-use-with-updat.patch
PR17.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment