Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(268629)

Unified Diff: Lib/lib2to3/tests/test_util.py

Issue 2830: Copy cgi.escape() to html
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/http/server.py ('k') | Lib/test/test_xml_etree.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Lib/lib2to3/tests/test_util.py
===================================================================
--- Lib/lib2to3/tests/test_util.py (revision 84355)
+++ Lib/lib2to3/tests/test_util.py (working copy)
@@ -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()')
« no previous file with comments | « Lib/http/server.py ('k') | Lib/test/test_xml_etree.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+