lib-python.2.7.lib2to3.tests.test_all_fixers.py Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jython Show documentation
Show all versions of jython Show documentation
Jython is an implementation of the high-level, dynamic, object-oriented
language Python written in 100% Pure Java, and seamlessly integrated with
the Java platform. It thus allows you to run Python on any Java platform.
"""Tests that run all fixer modules over an input stream.
This has been broken out into its own test module because of its
running time.
"""
# Author: Collin Winter
# Python imports
import unittest
# Local imports
from lib2to3 import refactor
from . import support
class Test_all(support.TestCase):
def setUp(self):
self.refactor = support.get_refactorer()
def test_all_project_files(self):
for filepath in support.all_project_files():
self.refactor.refactor_file(filepath)