From 0d9f3349d90bf860146dcd5f179c370488b4baec Mon Sep 17 00:00:00 2001 From: Aaron Bauman Date: Tue, 3 Dec 2019 18:12:16 -0500 Subject: [PATCH] dev-python/cssutils: fix tests * Casing issue discovered for calls to Windows-1252 vs windows-1252 Suggested-by: Patrick McLean Signed-off-by: Aaron Bauman --- dev-python/cssutils/cssutils-1.0.2-r1.ebuild | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev-python/cssutils/cssutils-1.0.2-r1.ebuild b/dev-python/cssutils/cssutils-1.0.2-r1.ebuild index 3e02fd56a0a7..9963ab692488 100644 --- a/dev-python/cssutils/cssutils-1.0.2-r1.ebuild +++ b/dev-python/cssutils/cssutils-1.0.2-r1.ebuild @@ -35,6 +35,10 @@ python_prepare_all() { -e '/tests_require/d' \ -i setup.py || die + # fix casing of call to Windows-1252. Remove when upstream fixes casing. + sed -i -e 's/encutils.tryEncodings(test)/encutils.tryEncodings(test).lower()/' \ + src/cssutils/tests/test_encutils/__init__.py || die "fixing test_encutils failed" + distutils-r1_python_prepare_all } -- 2.26.2