(utf8_opt, expected, **kw)
| 217 | code = 'import locale, sys; print("%s:%s" % (locale.getpreferredencoding(), ascii(sys.argv[1:])))' |
| 218 | |
| 219 | def check(utf8_opt, expected, **kw): |
| 220 | out = self.get_output('-X', utf8_opt, '-c', code, arg, **kw) |
| 221 | args = out.partition(':')[2].rstrip() |
| 222 | self.assertEqual(args, ascii(expected), out) |
| 223 | |
| 224 | check('utf8', [arg_utf8]) |
| 225 | for loc in POSIX_LOCALES: |
nothing calls this directly
no test coverage detected