A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mail-archive.com/html5lib-discuss@googlegroups.com/msg00142.html below:

Re: 0.10 Release

James Graham wrote:
> I've packed up the current python svn in the hope that we can use it for 
> release. The package is downloadable at 
> http://james.html5.org/temp/html5lib-0.10.zip You'll need setuptools 
> (maybe we should package that?). I've chosen to include the test data so 
> users can do "python setup.py test" to run the tests. Is this worthwhile 
>   given that it makes the total package rather large (~1Mb)?
> 
> Let me know of any problems.
> 
test_encoding.py fails if you run it with chardet installed.
The attached patch fixes this.


Cheers,

Bernd

-- 
Bernd Zeimetz
<[EMAIL PROTECTED]>                         <http://bzed.de/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"html5lib-discuss" group.
 To post to this group, send email to html5lib-discuss@googlegroups.com
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.com/group/html5lib-discuss?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

#! /bin/sh /usr/share/dpatch/dpatch-run
## test-encoding-fix.dpatch by Bernd Zeimetz <[EMAIL PROTECTED]>
##
## DP: Did anybody ever run this test!?

@DPATCH@
diff -urNad html5lib~/tests/test_encoding.py html5lib/tests/test_encoding.py
--- html5lib~/tests/test_encoding.py    2007-09-30 11:52:08.000000000 +0200
+++ html5lib/tests/test_encoding.py     2007-10-01 09:51:56.000000000 +0200
@@ -23,7 +23,7 @@
     try:
         import chardet
         def test_chardet(self):
-            data = open(os.path.join(test_dir, 
"/chardet/test_big5.txt")).read()
+            data = open(os.path.join(test_dir, "encoding" , "chardet", 
"test_big5.txt")).read()
             encoding = inputstream.HTMLInputStream(data).charEncoding
             assert encoding.lower() == "big5"
         setattr(Html5EncodingTestCase, 'test_chardet', test_chardet)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4