Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.
This repository was archived by the owner on Nov 23, 2017. It is now read-only.

SO_REUSEPORT is defined but not implemented on Android #352

@xdegaye

Description

@xdegaye

See Python issue 26858 [1]. The following patch defines is_android in a backward compatible way to support the changes in Python issue 26858 [1].

[1] http://bugs.python.org/issue26858.

diff -r 2a742cf69c8d asyncio/test_support.py
--- a/asyncio/test_support.py   Sun May 22 09:02:27 2016 +0200
+++ b/asyncio/test_support.py   Sun May 22 10:11:48 2016 +0200
@@ -102,6 +102,9 @@

 is_jython = sys.platform.startswith('java')

+is_android = (hasattr(platform, 'android_ver') and
+              bool(platform.android_ver()[0]))
+
 def gc_collect():
     """Force as many objects as possible to be collected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions