dev-python/cssutils: fix tests

* Casing issue discovered for calls to Windows-1252 vs windows-1252

Suggested-by: Patrick McLean <chutzpah@gentoo.org>
Signed-off-by: Aaron Bauman <bman@gentoo.org>
This commit is contained in:
Aaron Bauman
2019-12-03 18:12:16 -05:00
parent 68458461f0
commit 0d9f3349d9

View File

@@ -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
}