summaryrefslogtreecommitdiffstats
path: root/Lib/test/pythoninfo.py
diff options
context:
space:
mode:
authorMalcolm Smith <smith@chaquo.com>2024-03-27 16:53:27 (GMT)
committerGitHub <noreply@github.com>2024-03-27 16:53:27 (GMT)
commit74c8568d07719529b874897598d8b3bc25ff0434 (patch)
tree43226bc05462471e4c05c7a160335aa3e752d2ea /Lib/test/pythoninfo.py
parentce00de4c8cd39816f992e749c1074487d93abe9d (diff)
downloadcpython-74c8568d07719529b874897598d8b3bc25ff0434.zip
cpython-74c8568d07719529b874897598d8b3bc25ff0434.tar.gz
cpython-74c8568d07719529b874897598d8b3bc25ff0434.tar.bz2
gh-71042: Add `platform.android_ver` (#116674)
Diffstat (limited to 'Lib/test/pythoninfo.py')
-rw-r--r--Lib/test/pythoninfo.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py
index 8143587..5612c55 100644
--- a/Lib/test/pythoninfo.py
+++ b/Lib/test/pythoninfo.py
@@ -179,6 +179,9 @@ def collect_platform(info_add):
info_add(f'platform.freedesktop_os_release[{key}]',
os_release[key])
+ if sys.platform == 'android':
+ call_func(info_add, 'platform.android_ver', platform, 'android_ver')
+
def collect_locale(info_add):
import locale