Home | History | Annotate | Download | only in tests

Lines Matching refs:test_file

185     def check_file_refactoring(self, test_file, fixers=_2TO3_FIXERS,
191 shutil.copy(test_file, tmpdir)
192 test_file = os.path.join(tmpdir, os.path.basename(test_file))
193 os.chmod(test_file, 0o644)
196 with open(test_file, "rb") as fp:
204 rt.refactor_file(test_file)
209 rt.refactor_file(test_file, True)
215 test_file = os.path.join(FIXER_DIR, "parrot_example.py")
216 self.check_file_refactoring(test_file, _DEFAULT_FIXERS)
219 test_file = os.path.join(FIXER_DIR, "parrot_example.py")
223 self.check_file_refactoring(test_file, fixers=(),
230 os.sep, os.path.basename(test_file))