summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorXavier de Gaye <xdegaye@users.sourceforge.net>2016-12-15 20:01:52 (GMT)
committerXavier de Gaye <xdegaye@users.sourceforge.net>2016-12-15 20:01:52 (GMT)
commit31eaf49ed93e725ba84e17156b90c785ca8ecb4c (patch)
treed4a0f0019b1905a9f703721e6213b0879895762a /Lib
parent5cc70c9935ca07d4ac08cddaeee90a87ec1e5a4a (diff)
parent76febd079299d64abffee0bdd7c4c1785e5a0fa7 (diff)
downloadcpython-31eaf49ed93e725ba84e17156b90c785ca8ecb4c.zip
cpython-31eaf49ed93e725ba84e17156b90c785ca8ecb4c.tar.gz
cpython-31eaf49ed93e725ba84e17156b90c785ca8ecb4c.tar.bz2
Merge 3.6.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_cmd_line.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py
index b71bb9f..ae2bcd4 100644
--- a/Lib/test/test_cmd_line.py
+++ b/Lib/test/test_cmd_line.py
@@ -8,7 +8,7 @@ import shutil
import sys
import subprocess
import tempfile
-from test.support import script_helper
+from test.support import script_helper, is_android
from test.support.script_helper import (spawn_python, kill_python, assert_python_ok,
assert_python_failure)
@@ -178,15 +178,16 @@ class CmdLineTest(unittest.TestCase):
if not stdout.startswith(pattern):
raise AssertionError("%a doesn't start with %a" % (stdout, pattern))
- @unittest.skipUnless(sys.platform == 'darwin', 'test specific to Mac OS X')
- def test_osx_utf8(self):
+ @unittest.skipUnless((sys.platform == 'darwin' or
+ is_android), 'test specific to Mac OS X and Android')
+ def test_osx_android_utf8(self):
def check_output(text):
decoded = text.decode('utf-8', 'surrogateescape')
expected = ascii(decoded).encode('ascii') + b'\n'
env = os.environ.copy()
# C locale gives ASCII locale encoding, but Python uses UTF-8
- # to parse the command line arguments on Mac OS X
+ # to parse the command line arguments on Mac OS X and Android.
env['LC_ALL'] = 'C'
p = subprocess.Popen(