summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2011-12-15 02:29:04 +0000
committerMike Gilbert <floppym@gentoo.org>2011-12-15 02:29:04 +0000
commited3b1fa1071d9c65a027542655c611edd2799c0b (patch)
treec750def6918bf84b34fab9aeb87d8934ebebc60a /dev-python/odfpy/files
parentRestore the Delete keyboard shortcut for deleting files (bug #393663, thanks ... (diff)
downloadgentoo-2-ed3b1fa1071d9c65a027542655c611edd2799c0b.tar.gz
gentoo-2-ed3b1fa1071d9c65a027542655c611edd2799c0b.tar.bz2
gentoo-2-ed3b1fa1071d9c65a027542655c611edd2799c0b.zip
Version bump based on work by Arfrever in Progress overlay. Resolves bug 389631 by Ian Delaney.
(Portage version: 2.2.0_alpha81/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/odfpy/files')
-rw-r--r--dev-python/odfpy/files/odfpy-0.9.4-tests.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/dev-python/odfpy/files/odfpy-0.9.4-tests.patch b/dev-python/odfpy/files/odfpy-0.9.4-tests.patch
new file mode 100644
index 000000000000..1c0be00af5a8
--- /dev/null
+++ b/dev-python/odfpy/files/odfpy-0.9.4-tests.patch
@@ -0,0 +1,32 @@
+--- tests/testxmlgen.py
++++ tests/testxmlgen.py
+@@ -20,6 +20,7 @@
+
+ import xml.sax, xml.sax.saxutils
+ import StringIO
++import sys
+ import unittest
+
+ class MyGen(xml.sax.saxutils.XMLGenerator):
+@@ -70,14 +71,16 @@
+ <a:greetings xmlns:a="http://example.com/ns">
+ <a:greet xml:lang="en">Hello world</a:greet>
+ </a:greetings>"""
+- parser.feed(testcontent)
+- parser.close()
+- expectedresult="""<?xml version="1.0" encoding="utf-8"?>
++ if sys.version_info < (2, 7):
++ self.assertRaises(KeyError, parser.feed, testcontent)
++ else:
++ parser.feed(testcontent)
++ parser.close()
++ expectedresult="""<?xml version="1.0" encoding="utf-8"?>
+ <a:greetings xmlns:a="http://example.com/ns">
+ <a:greet xml:lang="en">Hello world</a:greet>
+ </a:greetings>"""
+- self.assertEqual( outfp.getvalue(), expectedresult)
+-# self.assertRaises(KeyError, parser.feed, testcontent)
++ self.assertEqual( outfp.getvalue(), expectedresult)
+
+ def test_myxml(self):
+ """ Test that my patch works """