Message280769
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. |
|
Date |
User |
Action |
Args |
2016-11-14 13:03:52 | vstinner | set | recipients:
+ vstinner, gvanrossum, giampaolo.rodola, xdegaye, yselivanov |
2016-11-14 13:03:52 | vstinner | set | messageid: <1479128632.16.0.326929629756.issue28684@psf.upfronthosting.co.za> |
2016-11-14 13:03:52 | vstinner | link | issue28684 messages |
2016-11-14 13:03:52 | vstinner | create | |
|