[Python-checkins] r73244 - sandbox/trunk/2to3/lib2to3/tests/test_fixers.py
benjamin.peterson
python-checkins at python.org
Fri Jun 5 15:39:25 CEST 2009
Author: benjamin.peterson
Date: Fri Jun 5 15:39:25 2009
New Revision: 73244
Log:
allow fixers to give different options in setUp
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 Fri Jun 5 15:39:25 2009
@@ -15,10 +15,11 @@
# Other test cases can subclass this class and replace "fixer_pkg" with
# their own.
- def setUp(self, fix_list=None, fixer_pkg="lib2to3"):
+ def setUp(self, fix_list=None, fixer_pkg="lib2to3", options=None):
if fix_list is None:
fix_list = [self.fixer]
- options = {"print_function" : False}
+ if options is None:
+ options = {"print_function" : False}
self.refactor = support.get_refactorer(fixer_pkg, fix_list, options)
self.fixer_log = []
self.filename = u"<string>"
More information about the Python-checkins
mailing list