]> git.pld-linux.org Git - packages/python-cssutils.git/blobdiff - python-cssutils-tests.patch
- updated to 1.0.2
[packages/python-cssutils.git] / python-cssutils-tests.patch
diff --git a/python-cssutils-tests.patch b/python-cssutils-tests.patch
new file mode 100644 (file)
index 0000000..33ceaac
--- /dev/null
@@ -0,0 +1,11 @@
+--- cssutils-1.0.2/src/cssutils/tests/test_errorhandler.py.orig        2017-07-03 19:31:47.420236687 +0200
++++ cssutils-1.0.2/src/cssutils/tests/test_errorhandler.py     2017-07-03 19:31:51.623569973 +0200
+@@ -84,7 +84,7 @@
+             self.assertEqual(str(e), 'CSSImportRule: Unexpected ident. [1:9: x]')\r
+             self.assertEqual(e.line, 1)\r
+             self.assertEqual(e.col, 9)\r
+-            if sys.platform.startswith('java'):\r
++            if sys.platform.startswith('java') or sys.version_info[0] < 3:\r
+                 self.assertEqual(e.msg, u'CSSImportRule: Unexpected ident. [1:9: x]')\r
+             else:\r
+                 self.assertEqual(e.args, (u'CSSImportRule: Unexpected ident. [1:9: x]',))\r
This page took 0.047323 seconds and 4 git commands to generate.