public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-python/utidylib/files: utidylib-0.2-fix_tests.patch utidylib-0.2-tests-twisted-2.1-compat.patch
@ 2009-07-25 16:13 Jesus Rivero (neurogeek)
  0 siblings, 0 replies; only message in thread
From: Jesus Rivero (neurogeek) @ 2009-07-25 16:13 UTC (permalink / raw
  To: gentoo-commits

neurogeek    09/07/25 16:13:11

  Modified:             utidylib-0.2-fix_tests.patch
  Removed:              utidylib-0.2-tests-twisted-2.1-compat.patch
  Log:
  Revision bump. Fixed tests. Closes bug #276881
  (Portage version: 2.2_rc23/cvs/Linux i686)

Revision  Changes    Path
1.2                  dev-python/utidylib/files/utidylib-0.2-fix_tests.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/utidylib/files/utidylib-0.2-fix_tests.patch?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/utidylib/files/utidylib-0.2-fix_tests.patch?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/utidylib/files/utidylib-0.2-fix_tests.patch?r1=1.1&r2=1.2

Index: utidylib-0.2-fix_tests.patch
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-python/utidylib/files/utidylib-0.2-fix_tests.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- utidylib-0.2-fix_tests.patch	6 Jan 2007 21:19:11 -0000	1.1
+++ utidylib-0.2-fix_tests.patch	25 Jul 2009 16:13:11 -0000	1.2
@@ -1,17 +1,34 @@
---- tidy/test_tidy.py.orig	2007-01-06 21:43:08.000000000 +0100
-+++ tidy/test_tidy.py	2007-01-06 21:43:27.000000000 +0100
-@@ -20,8 +20,8 @@
+diff -uNr uTidylib-0.2.orig/tidy/test_tidy.py uTidylib-0.2/tidy/test_tidy.py
+--- uTidylib-0.2.orig/tidy/test_tidy.py	2004-02-24 08:53:52.000000000 +0000
++++ uTidylib-0.2/tidy/test_tidy.py	2009-07-25 15:50:56.000000000 +0000
+@@ -4,6 +4,10 @@
+ 
+ class TidyTestCase(unittest.TestCase):
+     def __init__(self, *args, **kwargs):
++        super(unittest.TestCase, self).__init__(*args, **kwargs)
++        self._shared = False
++        self._parents = []
++
+         foo = u'''<html>
+     <h1>woot</h1>
+     <hr>
+@@ -13,13 +17,13 @@
+   </body>
+ </html>
+ '''.encode('utf8')
+-        file('foo.htm', 'w').write(foo)
++        file('foo.htm', 'w').write(foo)
+         self.input1 = "<html><script>1>2</script>"
+         self.input2 = "<html>\n" + "<p>asdkfjhasldkfjhsldjas\n" * 100
      def defaultDocs(self):
          doc1 = tidy.parseString(self.input1)
          doc2 = tidy.parseString(self.input2)
 -        doc3 = tidy.parse("foo.htm")
--        doc4 = tidy.parse("bar.htm") # doesn't exist
 +        doc3 = tidy.parse("../foo.htm")
-+        doc4 = tidy.parse("../bar.htm") # doesn't exist
+         doc4 = tidy.parse("bar.htm") # doesn't exist
          return (doc1, doc2, doc3, doc4)
      def test_badOptions(self):
-         badopts = [{'foo': 1}, {'indent': '---'}, {'indent_spaces': None}]
-@@ -34,7 +34,7 @@
+@@ -33,7 +37,7 @@
                  self.fail("Invalid option %s should have raised an error" %
                            repr(dct))
      def test_encodings(self):
@@ -20,7 +37,7 @@
                                                             'xmlcharrefreplace')
          doc1u = tidy.parseString(foo, input_encoding='ascii',
                                   output_encoding='latin1')
-@@ -59,7 +59,7 @@
+@@ -58,7 +62,7 @@
  ##        self.failIf(len(doc2.errors)>1) # FIXME - tidylib doesn't
  ##                                        # support this?
          self.failUnless(str(doc2).find('\n')<0)






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-25 16:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-25 16:13 [gentoo-commits] gentoo-x86 commit in dev-python/utidylib/files: utidylib-0.2-fix_tests.patch utidylib-0.2-tests-twisted-2.1-compat.patch Jesus Rivero (neurogeek)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox