Commit 073f759d authored by Victor Stinner's avatar Victor Stinner

Move non-ascii test from test_run_code() to a new function: test_non_ascii()

parent f6211eda
......@@ -99,8 +99,10 @@ class CmdLineTest(unittest.TestCase):
# All good if execution is successful
assert_python_ok('-c', 'pass')
@unittest.skipIf(sys.getfilesystemencoding() == 'ascii',
'need a filesystem encoding different than ASCII')
def test_non_ascii(self):
# Test handling of non-ascii data
if sys.getfilesystemencoding() != 'ascii':
if test.support.verbose:
import locale
print('locale encoding = %s, filesystem encoding = %s'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment