[Checkins] SVN: Sandbox/malthe/chameleon.genshi/src/chameleon/genshi/tests/test_edges.py Removed fail demonstrating that the compiler may reach the stack limit while compiling AST; to work around this issue, we must use either the parser module or the new ast module which is available in Python 2.6; until then, the solution is to increase the stack size in the Python run-time.

Malthe Borch mborch at gmail.com
Mon Oct 13 16:13:09 EDT 2008


Log message for revision 92171:
  Removed fail demonstrating that the compiler may reach the stack limit while compiling AST; to work around this issue, we must use either the parser module or the new ast module which is available in Python 2.6; until then, the solution is to increase the stack size in the Python run-time.

Changed:
  U   Sandbox/malthe/chameleon.genshi/src/chameleon/genshi/tests/test_edges.py

-=-
Modified: Sandbox/malthe/chameleon.genshi/src/chameleon/genshi/tests/test_edges.py
===================================================================
--- Sandbox/malthe/chameleon.genshi/src/chameleon/genshi/tests/test_edges.py	2008-10-13 20:10:55 UTC (rev 92170)
+++ Sandbox/malthe/chameleon.genshi/src/chameleon/genshi/tests/test_edges.py	2008-10-13 20:13:09 UTC (rev 92171)
@@ -25,22 +25,6 @@
         result = render_template(body, foo=c).encode('utf-8')
         self.assertEqual(norm(result), norm(expected))
 
-class WeirdoForms(unittest.TestCase):
-    def test_lots_of_options(self):
-        option = """<option value="one" py:attrs="dict(selected=value=='one' and 'yes' or None)">one</option>\n"""
-        select = """<select py:with="value='one'">%s</select>\n""" % (70*option)
-
-        body = """\
-        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-        <html xmlns="http://www.w3.org/1999/xhtml"
-        xmlns:xi="http://www.w3.org/2001/XInclude"
-        xmlns:py="http://genshi.edgewall.org/">
-        %s
-        </html>
-        """ % (20*select)
-        result = render_template(body)
-
 def norm(s):
     s = s.replace(' ', '')
     s = s.replace('\n', '')



More information about the Checkins mailing list