summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2011-12-22 20:54:01 +0000
committerMike Gilbert <floppym@gentoo.org>2011-12-22 20:54:01 +0000
commitc24178c8edec54d48218af8fd4df3bc102a0aebe (patch)
tree7f16ad45376a7e750acf86f97a3123c71004d96b /dev-python/cssutils
parentVersion bump to fix a few more bugs. (diff)
downloadhistorical-c24178c8edec54d48218af8fd4df3bc102a0aebe.tar.gz
historical-c24178c8edec54d48218af8fd4df3bc102a0aebe.tar.bz2
historical-c24178c8edec54d48218af8fd4df3bc102a0aebe.zip
Fix test failures. Patch by Ian Delaney. Bug 386807.
Package-Manager: portage-2.2.0_alpha81/cvs/Linux x86_64
Diffstat (limited to 'dev-python/cssutils')
-rw-r--r--dev-python/cssutils/ChangeLog6
-rw-r--r--dev-python/cssutils/Manifest13
-rw-r--r--dev-python/cssutils/cssutils-0.9.7.ebuild9
-rw-r--r--dev-python/cssutils/files/cssutils-0.9.7-test.patch60
4 files changed, 77 insertions, 11 deletions
diff --git a/dev-python/cssutils/ChangeLog b/dev-python/cssutils/ChangeLog
index 5c8982eb8df6..15e34e691758 100644
--- a/dev-python/cssutils/ChangeLog
+++ b/dev-python/cssutils/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/cssutils
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/cssutils/ChangeLog,v 1.20 2011/12/11 21:48:58 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/cssutils/ChangeLog,v 1.21 2011/12/22 20:54:01 floppym Exp $
+
+ 22 Dec 2011; Mike Gilbert <floppym@gentoo.org>
+ +files/cssutils-0.9.7-test.patch, cssutils-0.9.7.ebuild:
+ Fix test failures. Patch by Ian Delaney. Bug 386807.
11 Dec 2011; Markus Meier <maekke@gentoo.org> cssutils-0.9.7.ebuild:
x86 stable, bug #386729
diff --git a/dev-python/cssutils/Manifest b/dev-python/cssutils/Manifest
index e03de869637d..cbbd74c12d42 100644
--- a/dev-python/cssutils/Manifest
+++ b/dev-python/cssutils/Manifest
@@ -1,14 +1,15 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA256
+AUX cssutils-0.9.7-test.patch 3959 RMD160 5c3ef9a006c75b3a9c49d166c4d6770a1379ece3 SHA1 6297c2d09304705f2d023ca5a2f4f894af11c815 SHA256 8f8203849cff354a3d4c03aaaf50e006a0846a60f47a50be0baaedff6d9980ff
DIST cssutils-0.9.7.zip 447664 RMD160 6119363eb9b8e38188cb8943c59d6d345681b227 SHA1 95a25352ab067c7b13aa82c5f6a5408cf82a2678 SHA256 2160d5a183862f3a91734f22391e937ff9accf115fd767705577ddd7ddbcb38b
-EBUILD cssutils-0.9.7.ebuild 1257 RMD160 fe81db51b7f2c9b5cffe3c9cc781e3bba79645e9 SHA1 e129c9a21b8a6036035b18639f2816c8a0dfb104 SHA256 427a37daa1067621657e09d01ed4fefab5afffe9cb22c5ec12949e9432d2bbd0
-MISC ChangeLog 3774 RMD160 00e59f8ae109e28d9935ce3df311e8ffe7a4b23c SHA1 0ed83449f129949d2389e581d945892714c3cce1 SHA256 3e8a889eb58c236868604c3f66b2bddc47c9208d02ddac4a7dfd3011259dcadb
+EBUILD cssutils-0.9.7.ebuild 1302 RMD160 627635074f3bd5880ff2ee1c68af292d76cf0a76 SHA1 2118e48a09287d07c1c63d62f428bee88b73763d SHA256 c1f60f5df4b0307f4e0d47085e66bbdc8d4902d5e4d78fd9b20dcc89d7f79d0a
+MISC ChangeLog 3939 RMD160 baf747bc43db0270ee896511632de9f2a22ce62f SHA1 ff489393e6a0d003cd5eb923d67d2647e4bb11ba SHA256 42ea645fb9543fac03462c9758a39fc61b97a78d3a6e0f4ef2f89694c9f0ca4d
MISC metadata.xml 385 RMD160 9c8a25d26493472c03249bebb73d409a8e097c34 SHA1 124f54c2fd7aa4a407adc1f8590e9dc111ced4f7 SHA256 3392efc3528e8b5c617cb503a988ed68e17d605daf4a64e7e23d2d8b429f31b1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEARECAAYFAk7lJbEACgkQkKaRLQcq0GKXyQCfYcSkCC0Yqh0UuJaTAsZXnUrq
-QiUAn1/GjPv5KQrKIeMF7tZoGQuUGOIg
-=RBU9
+iF4EAREIAAYFAk7zmO4ACgkQC77qH+pIQ6QAtQD+O8+xWuDEray83LI20zBLX7Cb
+NPAFkp0hgg6H1hMjMAcBAIKSKmYRwrbJZ33zgar4YtisKnIvsvsNmTJz+ezx+3gV
+=hGCy
-----END PGP SIGNATURE-----
diff --git a/dev-python/cssutils/cssutils-0.9.7.ebuild b/dev-python/cssutils/cssutils-0.9.7.ebuild
index a756ca8c4523..9ad61cf0cd3d 100644
--- a/dev-python/cssutils/cssutils-0.9.7.ebuild
+++ b/dev-python/cssutils/cssutils-0.9.7.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/cssutils/cssutils-0.9.7.ebuild,v 1.6 2011/12/11 21:48:58 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/cssutils/cssutils-0.9.7.ebuild,v 1.7 2011/12/22 20:54:01 floppym Exp $
EAPI="3"
PYTHON_DEPEND="2"
@@ -8,7 +8,7 @@ SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
DISTUTILS_SRC_TEST="nosetests"
-inherit distutils
+inherit distutils eutils
MY_P="${PN}-${PV/_alpha/a}"
@@ -26,8 +26,6 @@ DEPEND="${RDEPEND}
app-arch/unzip
test? ( dev-python/minimock )"
-RESTRICT="test"
-
S="${WORKDIR}/${MY_P}"
PYTHON_MODNAME="cssutils encutils"
@@ -39,6 +37,9 @@ src_prepare() {
if has_version dev-python/pyxml; then
sed -e "s/test_linecol/_&/" -i src/tests/test_errorhandler.py
fi
+
+ # Bug 386807.
+ epatch "${FILESDIR}/${P}-test.patch"
}
src_install() {
diff --git a/dev-python/cssutils/files/cssutils-0.9.7-test.patch b/dev-python/cssutils/files/cssutils-0.9.7-test.patch
new file mode 100644
index 000000000000..a93e44fa9c5a
--- /dev/null
+++ b/dev-python/cssutils/files/cssutils-0.9.7-test.patch
@@ -0,0 +1,60 @@
+Fix some test failures. Adapted from:
+https://bitbucket.org/cthedot/cssutils/changeset/c944fbd1b309
+diff -ur cssutils-0.9.7.orig/examples/customlog.py cssutils-0.9.7/examples/customlog.py
+--- examples/customlog.py 2010-11-27 18:23:40.000000000 +0800
++++ examples/customlog.py 2011-12-23 02:11:47.863908828 +0800
+@@ -1,7 +1,7 @@
+ import logging, StringIO
+
+ EXPOUT = ""
+-EXPERR = u"Property: Unknown Property name. [1:5: x]\nHTTPError opening url=u'http://example.com/x': 404 Not Found\nCSSImportRule: While processing imported style sheet href=u'http://example.com/x': IOError('Cannot read Stylesheet.',)\nCSSStylesheet: CSSImportRule not allowed here. [1:13: @import]\n"
++EXPERR = u"Property: Unknown Property name. [1:5: x]\nHTTPError opening url=u'http://cthedot.de/x': 404 Not Found\nCSSImportRule: While processing imported style sheet href=u'http://cthedot.de/x': IOError('Cannot read Stylesheet.',)\nCSSStylesheet: CSSImportRule not allowed here. [1:13: @import]\n"
+
+ def main():
+ import cssutils
+@@ -12,7 +12,7 @@
+ #cssutils.log.addHandler(h)
+ cssutils.log.setLevel(logging.INFO)
+
+- sheet = cssutils.parseString('a { x: 1; } @import "http://example.com/x";')
++ sheet = cssutils.parseString('a { x: 1; } @import "http://cthedot.de/x";')
+ #print mylog.getvalue()
+
+ cssutils.log.removeHandler(h)
+diff -ur cssutils-0.9.7.orig/src/tests/test_parse.py cssutils-0.9.7/src/tests/test_parse.py
+--- src/tests/test_parse.py 2010-11-27 18:23:36.000000000 +0800
++++ src/tests/test_parse.py 2011-12-23 02:24:13.419840476 +0800
+@@ -96,15 +96,15 @@
+ ('', None): (False, None, None),
+ ('1', None): (False, None, None),
+ ('mailto:a@bb.cd', None): (False, None, None),
+- ('http://example.com/x.css', None): (False, None, None),
+- ('http://example.com/x.css', ''): (True, u'utf-8', u''),
+- # ('http://example.com/x.css', 'a'): (True, u'utf-8', u''),
+-# ('http://example.com/x.css', 'a {color: red}'): (True, u'utf-8',
+-# u'a {\n color: red\n }'),
+-# ('http://example.com/x.css', 'a {color: red}'): (True, u'utf-8',
+-# u'a {\n color: red\n }'),
+-# ('http://example.com/x.css', '@charset "ascii";a {color: red}'): (True, u'ascii',
+-# u'@charset "ascii";\na {\n color: red\n }'),
++ ('http://cthedot.de/test.css', None): (False, None, None),
++ ('http://cthedot.de/test.css', ''): (True, u'utf-8', u''),
++ ('http://cthedot.de/test.css', 'a'): (True, u'utf-8', u''),
++ ('http://cthedot.de/test.css', 'a {color: red}'): (True, u'utf-8',
++ u'a {\n color: red\n }'),
++ ('http://cthedot.de/test.css', 'a {color: red}'): (True, u'utf-8',
++ u'a {\n color: red\n }'),
++ ('http://cthedot.de/test.css', '@charset "ascii";a {color: red}'): (True, u'ascii',
++ u'@charset "ascii";\na {\n color: red\n }'),
+ }
+ override = 'iso-8859-1'
+ overrideprefix = u'@charset "iso-8859-1";'
+@@ -132,7 +132,7 @@
+ self.assertEqual(sheet2, None)
+
+ self.assertRaises(ValueError, parser.parseUrl, '../not-valid-in-urllib')
+- self.assertRaises(urllib2.HTTPError, parser.parseUrl, 'http://example.com/not-present.css')
++ self.assertRaises(urllib2.HTTPError, parser.parseUrl, 'http://cthedot.de/not-present.css')
+
+ def test_parseString(self):
+ "CSSParser.parseString()"