[Python-checkins] r85551 - sandbox/trunk/2to3/lib2to3/tests/test_util.py

benjamin.peterson python-checkins at python.org
Fri Oct 15 23:57:29 CEST 2010


Author: benjamin.peterson
Date: Fri Oct 15 23:57:29 2010
New Revision: 85551
Log:
escape() is now in the html module
Modified:
 sandbox/trunk/2to3/lib2to3/tests/test_util.py
Modified: sandbox/trunk/2to3/lib2to3/tests/test_util.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/tests/test_util.py	(original)
+++ sandbox/trunk/2to3/lib2to3/tests/test_util.py	Fri Oct 15 23:57:29 2010
@@ -568,8 +568,8 @@
 
 def test_from_import(self):
 node = parse('bar()')
- fixer_util.touch_import("cgi", "escape", node)
- self.assertEqual(str(node), 'from cgi import escape\nbar()\n\n')
+ fixer_util.touch_import("html", "escape", node)
+ self.assertEqual(str(node), 'from html import escape\nbar()\n\n')
 
 def test_name_import(self):
 node = parse('bar()')


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /