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 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 <>
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/|386 col 16| if sys.platform in ('linux', 'darwin'):
Lib/test/|527 col 12| if sys.platform in ('linux', 'darwin'):
Lib/test/|135 col 26| @unittest.skipUnless(sys.platform == 'linux', 'test requires Linux')
Lib/test/|898 col 16| or sys.platform in ('linux', 'darwin')):
Lib/test/|2256 col 23| @skipWithClientIf(sys.platform not in {"linux"},
Lib/test/|4508 col 22| @unittest.skipUnless(sys.platform == 'linux', 'Linux specific test')
Lib/test/|388 col 26| @unittest.skipUnless(sys.platform == 'linux', 'Linux-specific test')
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: <>
2016-05-23 10:17:44xdegayelinkissue16353 messages
2016-05-23 10:17:44xdegayecreate