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.

Author abbeyj
Recipients abbeyj, benjamin.peterson
Date 2009-07-30.01:14:12
SpamBayes Score 1.0984616e-08
Marked as misclassified No
Message-id <1248916455.36.0.400701947417.issue6599@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-07-30 01:14:15abbeyjsetrecipients: + abbeyj, benjamin.peterson
2009-07-30 01:14:15abbeyjsetmessageid: <1248916455.36.0.400701947417.issue6599@psf.upfronthosting.co.za>
2009-07-30 01:14:13abbeyjlinkissue6599 messages
2009-07-30 01:14:13abbeyjcreate