[Python-checkins] r77098 - sandbox/trunk/2to3/lib2to3/tests/test_fixers.py
benjamin.peterson
python-checkins at python.org
Mon Dec 28 23:43:35 CET 2009
Author: benjamin.peterson
Date: Mon Dec 28 23:43:35 2009
New Revision: 77098
Log:
*** empty log message ***
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 Mon Dec 28 23:43:35 2009
@@ -2792,28 +2792,6 @@
if isinstance(do_stuff, Callable):
assert isinstance(do_stuff, collections.Callable)
do_stuff(do_stuff)
- if not isinstance(do_stuff, collections.Callable):
- exit(1)
- else:
- assert isinstance(do_stuff, collections.Callable)
-else:
- assert not isinstance(do_stuff, collections.Callable)"""[1:]
- self.check(b, a)
-
- def test_callable_should_not_change(self):
- a = """callable(*x)"""
- self.unchanged(a)
-
- a = """callable(x, y)"""
- self.unchanged(a)
-
- a = """callable(x, kw=y)"""
- self.unchanged(a)
-
- a = """callable()"""
- self.unchanged(a)
-
-class Test_filter(FixerTestCase):
fixer = "filter"
def test_prefix_preservation(self):
More information about the Python-checkins
mailing list