dev-python/cssutils: fix tests
authorAaron Bauman <bman@gentoo.org>
Tue, 3 Dec 2019 23:12:16 +0000 (18:12 -0500)
committerAaron Bauman <bman@gentoo.org>
Tue, 3 Dec 2019 23:15:11 +0000 (18:15 -0500)
* 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>
dev-python/cssutils/cssutils-1.0.2-r1.ebuild

index 3e02fd56a0a70a64f931a15230403423c528bc06..9963ab6924884004103922a5767f69008ceed672 100644 (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
 }