commit: 0d9f3349d90bf860146dcd5f179c370488b4baec
Author: Aaron Bauman <bman <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 3 23:12:16 2019 +0000
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Tue Dec 3 23:15:11 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d9f3349
dev-python/cssutils: fix tests
* Casing issue discovered for calls to Windows-1252 vs windows-1252
Suggested-by: Patrick McLean <chutzpah <AT> gentoo.org>
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
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 3e02fd56a0a..9963ab69248 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
}