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 giampaolo.rodola, gvanrossum, vstinner, xdegaye, yselivanov
Date 2016-11-14.13:03:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479128632.16.0.326929629756.issue28684@psf.upfronthosting.co.za>
In-reply-to
Content
I suggest to write a decorator in Lib/asyncio/test_utils.py to skip AF_UNIX tests on Android if os.getuid() != 0.

Another approach is to catch the PermissionError and re-raises an unittest.SkipTest. Begin by modifying unix_socket_path() context manager in Lib/asyncio/test_utils.py.

I prefer the approach catching PermissionError: it allows to run unit tests on a flavor of Android which doesn't raise PermissionError, and it handles PermissionError on other platforms.
History
Date User Action Args
2016-11-14 13:03:52vstinnersetrecipients: + vstinner, gvanrossum, giampaolo.rodola, xdegaye, yselivanov
2016-11-14 13:03:52vstinnersetmessageid: <1479128632.16.0.326929629756.issue28684@psf.upfronthosting.co.za>
2016-11-14 13:03:52vstinnerlinkissue28684 messages
2016-11-14 13:03:52vstinnercreate