diff genshi/template/tests/eval.py @ 731:01bdf155db95 trunk

Workaround for a Python 2.4 bug that broke star imports in template code blocks. Closes #221. Many thanks to Armin Ronacher for the patch.
author cmlenz
date Sun, 01 Jun 2008 20:09:28 +0000
parents 4bc6741b2811
children a1e8b24bc1bb
line wrap: on
line diff
--- a/genshi/template/tests/eval.py
+++ b/genshi/template/tests/eval.py
@@ -571,6 +571,12 @@
         suite.execute(data)
         assert 'ifilter' in data
 
+    def test_import_star(self):
+        suite = Suite("from itertools import *")
+        data = {}
+        suite.execute(data)
+        assert 'ifilter' in data
+
     def test_for(self):
         suite = Suite("""x = []
 for i in range(3):
Copyright (C) 2012-2017 Edgewall Software