Skip to content

Commit 0fe7e67

Browse files
authored
Restore api_level variable in test_android
1 parent df56fba commit 0fe7e67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_android.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import io
2+
import platform
23
import queue
34
import re
45
import subprocess
@@ -16,6 +17,8 @@
1617
if sys.platform != "android":
1718
raise unittest.SkipTest("Android-specific")
1819

20+
api_level = platform.android_ver().api_level
21+
1922
# (name, level, fileno)
2023
STREAM_INFO = [("stdout", "I", 1), ("stderr", "W", 2)]
2124

0 commit comments

Comments
 (0)