[Python-checkins] r83800 - sandbox/trunk/2to3/lib2to3/tests/test_fixers.py
benjamin.peterson
python-checkins at python.org
Sun Aug 8 01:58:52 CEST 2010
Author: benjamin.peterson
Date: Sun Aug 8 01:58:52 2010
New Revision: 83800
Log:
add another test
Modified:
sandbox/trunk/2to3/lib2to3/tests/test_fixers.py
Modified: sandbox/trunk/2to3/lib2to3/tests/test_fixers.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/tests/test_fixers.py (original)
+++ sandbox/trunk/2to3/lib2to3/tests/test_fixers.py Sun Aug 8 01:58:52 2010
@@ -1829,6 +1829,18 @@
from urllib.request import urlopen
"""
self.check(b, a)
+ b = """
+def foo():
+ other()
+ from urllib import urlencode, urlopen
+"""
+ a = """
+def foo():
+ other()
+ from urllib.parse import urlencode
+ from urllib.request import urlopen
+"""
+
def test_import_module_usage(self):
More information about the Python-checkins
mailing list