Author: pjenvey
Date: 2008-04-12 18:53:32 -0600 (Sat, 12 Apr 2008)
New Revision: 3378

Modified:
   FormEncode/trunk/tests/test_htmlfill.py
Log:
o __builtins__ is CPython specific, use __builtin__ instead
o fix test_xhtml

Modified: FormEncode/trunk/tests/test_htmlfill.py
===================================================================
--- FormEncode/trunk/tests/test_htmlfill.py     2008-04-11 16:16:35 UTC (rev 
3377)
+++ FormEncode/trunk/tests/test_htmlfill.py     2008-04-13 00:53:32 UTC (rev 
3378)
@@ -2,6 +2,7 @@
 import sys
 import os
 import re
+import __builtin__
 from htmlentitydefs import name2codepoint
 
 base_dir = os.path.dirname(os.path.dirname(os.path.dirname(
@@ -50,7 +51,7 @@
         def checker(p, s):
             pass
     for name in data.keys():
-        if name.startswith('_') or hasattr(__builtins__, name):
+        if name.startswith('_') or hasattr(__builtin__, name):
             del data[name]
     listener = htmlfill_schemabuilder.SchemaBuilder()
     p = htmlfill.FillingParser(listener=listener, **data)
@@ -91,5 +92,4 @@
 def test_xhtml():
     result = htmlfill.render('<form:error name="code"/>', errors={'code': 'an 
error'})
     print result
-    assert 0
     


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
FormEncode-CVS mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/formencode-cvs

Reply via email to