New submission from James Abbatiello <abb...@gmail.com>: test_print_function_option is failing on Windows. Patch attached. Output of failure:
C:>python test.py test_all_project_files (lib2to3.tests.test_all_fixers.Test_all) ... <snip>\2to3\lib2to3\refactor.py:194: DeprecationWarning: the 'print_function' option is deprecated DeprecationWarning) <snip> ====================================================================== FAIL: test_print_function_option (lib2to3.tests.test_refactor.TestRefactoringTool) ---------------------------------------------------------------------- Traceback (most recent call last): File "<snip>\2to3\lib2to3\tests\test_refactor.py", line 51, in test_print_function_option self.assertEqual(len(w), 1) AssertionError: 0 != 1 ---------------------------------------------------------------------- On my system test_all_fixers.py comes before test_refactor.py in the output of os.listdir(). The warning gets fired by test_all_fixers and then won't be retriggered in test_refactor. Since the option doesn't do anything anymore I've just removed its use. ---------- components: 2to3 (2.x to 3.0 conversion tool) files: print_function_option.patch keywords: patch messages: 91075 nosy: abbeyj, benjamin.peterson severity: normal status: open title: 2to3 test_print_function_option fails on Windows Added file: http://bugs.python.org/file14603/print_function_option.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6599> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com