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 vstinner
Recipients LorenzMende, paul.moore, steve.dower, terry.reedy, tim.golden, vstinner, zach.ware
Date 2018-07-23.10:52:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532343173.63.0.56676864532.issue25094@psf.upfronthosting.co.za>
In-reply-to
Content
Oh. I identified the root issue: Tools/scripts/2to3 is installed as Tools/scripts/2to3.py, a ".py" suffix is added. This script is tested on all non-Windows and skipped on Windows when run from source code, but test_sundry() imports 2to3.py which causes the test to fail, since the script expects an argument on the command line and fails with SystemExit which is not catched by test_sundry().

I wrote PR 8406 to skip 2to3.py. My PR also removes imported modules to remove side effects of the test.

--

Python 2.7 is not affected: test_tools is skipped on installed Python:

vstinner@WIN C:\>py -2.7 -m test test_tools                                     
...
test_tools skipped -- test irrelevant for an installed Python
...
Tests result: SUCCESS
History
Date User Action Args
2018-07-23 10:52:53vstinnersetrecipients: + vstinner, terry.reedy, paul.moore, tim.golden, zach.ware, steve.dower, LorenzMende
2018-07-23 10:52:53vstinnersetmessageid: <1532343173.63.0.56676864532.issue25094@psf.upfronthosting.co.za>
2018-07-23 10:52:53vstinnerlinkissue25094 messages
2018-07-23 10:52:53vstinnercreate