[Python-checkins] r56394 - in sandbox/trunk/2to3: tests/test_fixers.py
collin.winter
python-checkins at python.org
Sun Jul 15 01:05:10 CEST 2007
Author: collin.winter
Date: Sun Jul 15 01:05:10 2007
New Revision: 56394
Modified:
sandbox/trunk/2to3/ (props changed)
sandbox/trunk/2to3/tests/test_fixers.py
Log:
Additional tests for fix_raw_input and fix_input.
Modified: sandbox/trunk/2to3/tests/test_fixers.py
==============================================================================
--- sandbox/trunk/2to3/tests/test_fixers.py (original)
+++ sandbox/trunk/2to3/tests/test_fixers.py Sun Jul 15 01:05:10 2007
@@ -1165,6 +1165,11 @@
a = """x = input('prompt')"""
self.check(b, a)
+ def test_4(self):
+ b = """x = raw_input(foo(a) + 6)"""
+ a = """x = input(foo(a) + 6)"""
+ self.check(b, a)
+
class Test_funcattrs(FixerTestCase):
fixer = "funcattrs"
@@ -1322,6 +1327,11 @@
a = """x = eval(input('prompt'))"""
self.check(b, a)
+ def test_4(self):
+ b = """x = input(foo(5) + 9)"""
+ a = """x = eval(input(foo(5) + 9))"""
+ self.check(b, a)
+
class Test_tuple_params(FixerTestCase):
fixer = "tuple_params"
More information about the Python-checkins
mailing list