This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: 2to3 test_print_function_option fails on Windows
Type: Stage:
Components: 2to3 (2.x to 3.x conversion tool) Versions:
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: abbeyj, benjamin.peterson
Priority: normal Keywords: patch

Created on 2009-07-30 01:14 by abbeyj, last changed 2022-04-11 14:56 by admin. This issue is now closed.

File name Uploaded Description Edit
print_function_option.patch abbeyj, 2009-07-30 01:14
Messages (2)
msg91075 - (view) Author: James Abbatiello (abbeyj) Date: 2009-07-30 01:14
test_print_function_option is failing on Windows.  Patch attached. 
Output of failure:

test_all_project_files (lib2to3.tests.test_all_fixers.Test_all) ...
<snip>\2to3\lib2to3\ DeprecationWarning: the
'print_function' option is deprecated
FAIL: test_print_function_option
Traceback (most recent call last):
  File "<snip>\2to3\lib2to3\tests\", line 51, in
    self.assertEqual(len(w), 1)
AssertionError: 0 != 1


On my system comes before 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.
msg91507 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-08-12 22:23
Fixed in r74359.
Date User Action Args
2022-04-11 14:56:51adminsetgithub: 50848
2009-08-12 22:23:36benjamin.petersonsetstatus: open -> closed
resolution: fixed
messages: + msg91507
2009-07-30 01:14:13abbeyjcreate