dev-python/cssutils: Clear broken lineendings
authorJustin Lecher <jlec@gentoo.org>
Mon, 30 Nov 2015 14:40:01 +0000 (15:40 +0100)
committerJustin Lecher <jlec@gentoo.org>
Mon, 30 Nov 2015 14:42:27 +0000 (15:42 +0100)
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=567160

Package-Manager: portage-2.2.25
Signed-off-by: Justin Lecher <jlec@gentoo.org>
dev-python/cssutils/cssutils-1.0.1.ebuild
dev-python/cssutils/files/cssutils-1.0.1-pypy-test-backport.patch

index c2be49f955b6ea638ee933494a4196864f6800c7..d585a639942db15a030211714919a5643a1d030c 100644 (file)
@@ -35,6 +35,8 @@ python_prepare_all() {
                -e '/tests_require/d' \
                -i setup.py || die
 
+       EPATCH_OPTS="--binary"
+
        distutils-r1_python_prepare_all
 }
 
index 89c7608d32447d2540f2600a903a78516523ade4..f5f1bda3516d65e671df8dd5ce040270ea46e65e 100644 (file)
@@ -1,32 +1,32 @@
-# HG changeset patch
-# User Daniel <kingdread@gmx.de>
-# Date 1448482419 -3600
-# Node ID 01a19d494b6f31e91c54ae39c5a6f43f6292a85d
-# Parent  3a01bd18118a6466ad93aa23caaa4164528b59ac
-Fix tests on PyPy 2
-
-Tests fail because of the extra "u" prefix in the error message
-
-diff --git a/src/cssutils/tests/test_profiles.py b/src/cssutils/tests/test_profiles.py
---- a/src/cssutils/tests/test_profiles.py
-+++ b/src/cssutils/tests/test_profiles.py
-@@ -2,6 +2,7 @@
- __version__ = '$Id: test_cssvalue.py 1443 2008-08-31 13:54:39Z cthedot $'
- 
- import sys
-+import platform
- import basetest
- import cssutils
- 
-@@ -124,6 +125,11 @@
-             expmsg = u"invalid literal for int(): x" 
-         elif sys.platform.startswith('java'):
-             expmsg = u"invalid literal for int() with base 10: x"
-+        # PyPy adds the u prefix, but only in versions lower than Python 3
-+        elif (platform.python_implementation() == "PyPy" and
-+              sys.version_info < (3, 0)):
-+            expmsg = u"invalid literal for int() with base 10: u'x'"
-+
-             
-         self.assertRaisesMsg(Exception, expmsg, 
-                              cssutils.profile.validate, u'-test-funcval', u'x')
+# HG changeset patch\r
+# User Daniel <kingdread@gmx.de>\r
+# Date 1448482419 -3600\r
+# Node ID 01a19d494b6f31e91c54ae39c5a6f43f6292a85d\r
+# Parent  3a01bd18118a6466ad93aa23caaa4164528b59ac\r
+Fix tests on PyPy 2\r
+\r
+Tests fail because of the extra "u" prefix in the error message\r
+\r
+diff --git a/src/cssutils/tests/test_profiles.py b/src/cssutils/tests/test_profiles.py\r
+--- a/src/cssutils/tests/test_profiles.py\r
++++ b/src/cssutils/tests/test_profiles.py\r
+@@ -2,6 +2,7 @@\r
+ __version__ = '$Id: test_cssvalue.py 1443 2008-08-31 13:54:39Z cthedot $'\r
+ \r
+ import sys\r
++import platform\r
+ import basetest\r
+ import cssutils\r
+ \r
+@@ -124,6 +125,11 @@\r
+             expmsg = u"invalid literal for int(): x" \r
+         elif sys.platform.startswith('java'):\r
+             expmsg = u"invalid literal for int() with base 10: x"\r
++        # PyPy adds the u prefix, but only in versions lower than Python 3\r
++        elif (platform.python_implementation() == "PyPy" and\r
++              sys.version_info < (3, 0)):\r
++            expmsg = u"invalid literal for int() with base 10: u'x'"\r
++\r
+             \r
+         self.assertRaisesMsg(Exception, expmsg, \r
+                              cssutils.profile.validate, u'-test-funcval', u'x')\r