Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 302437 Details for
Bug 391185
=dev-python/utidylib-0.2-r1 - src_test(): Segmentation fault in trial
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
updated patch to apply to more recent source
utidylib-0.2.2-fix_tests.patch (text/plain), 2.04 KB, created by
Jonathan Lovelace
on 2012-02-18 20:19:49 UTC
(
hide
)
Description:
updated patch to apply to more recent source
Filename:
MIME Type:
Creator:
Jonathan Lovelace
Created:
2012-02-18 20:19:49 UTC
Size:
2.04 KB
patch
obsolete
>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 >@@ -5,6 +3,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> >@@ -14,15 +18,15 @@ > </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") >+ doc3 = tidy.parse("../foo.htm") > doc4 = tidy.parse("bar.htm") # doesn't exist > return (doc1, doc2, doc3, doc4) > > def test_badOptions(self): >@@ -37,7 +41,7 @@ > self.fail("Invalid option %s should have raised an error" % > repr(dct)) > def test_encodings(self): >- foo = file('foo.htm').read().decode('utf8').encode('ascii', >+ foo = file('../foo.htm').read().decode('utf8').encode('ascii', > 'xmlcharrefreplace') > doc1u = tidy.parseString(foo, input_encoding='ascii', > output_encoding='latin1') >@@ -64,7 +68,7 @@ > ## self.failIf(len(doc2.errors)>1) # FIXME - tidylib doesn't > ## # support this? > self.failUnless(str(doc2).find('\n') < 0) >- doc3 = tidy.parse('foo.htm', char_encoding='utf8', >+ doc3 = tidy.parse('../foo.htm', char_encoding='utf8', > alt_text='foo') > self.failUnless(str(doc3).find('alt="foo"') >= 0) > self.failUnless(str(doc3).find('\xc3\xa9') >= 0)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 391185
:
293255
|
296615
|
302435
| 302437