Author xdegaye
Recipients Roman.Evstifeev, WanderingLogic, akira, asvetlov, chris.jerdonek, christian.heimes, eric.araujo, eryksun, ezio.melotti, gregory.p.smith, lyapun, ned.deily, neologix, pitrou, r.david.murray, serhiy.storchaka, xdegaye, yan12125
Date 2016-05-23.10:17:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1463998664.47.0.122281052822.issue16353@psf.upfronthosting.co.za>
In-reply-to
Content
Following Serhiy suggestion at msg224477, this tentative patch adds the is_android attribute to the posix module and the default_shell attribute to the os module. No documentation for the moment. No test case is needed I think, as the changes in issue 16255 will test any solution found here.

An alternative to posix.is_android is sys.platform set to 'linux-android' on Android. These are the locations in the standard library that do not test for "if sys.platform.startswith('linux')":

Lib/distutils/tests/test_dist.py|386 col 16| if sys.platform in ('linux', 'darwin'):
Lib/test/test_logging.py|527 col 12| if sys.platform in ('linux', 'darwin'):
Lib/test/test_resource.py|135 col 26| @unittest.skipUnless(sys.platform == 'linux', 'test requires Linux')
Lib/test/test_socket.py|898 col 16| or sys.platform in ('linux', 'darwin')):
Lib/test/test_socket.py|2256 col 23| @skipWithClientIf(sys.platform not in {"linux"},
Lib/test/test_socket.py|4508 col 22| @unittest.skipUnless(sys.platform == 'linux', 'Linux specific test')
Lib/test/test_sysconfig.py|388 col 26| @unittest.skipUnless(sys.platform == 'linux', 'Linux-specific test')
History
Date User Action Args
2016-05-23 10:17:44xdegayesetrecipients: + xdegaye, gregory.p.smith, pitrou, christian.heimes, ned.deily, ezio.melotti, eric.araujo, r.david.murray, asvetlov, chris.jerdonek, neologix, akira, Roman.Evstifeev, serhiy.storchaka, eryksun, lyapun, WanderingLogic, yan12125
2016-05-23 10:17:44xdegayesetmessageid: <1463998664.47.0.122281052822.issue16353@psf.upfronthosting.co.za>
2016-05-23 10:17:44xdegayelinkissue16353 messages
2016-05-23 10:17:44xdegayecreate