(utf8_opt, expected, **kw)
| 225 | code = 'import locale, sys; print("%s:%s" % (locale.getpreferredencoding(), ascii(sys.argv[1:])))' |
| 226 | |
| 227 | def check(utf8_opt, expected, **kw): |
| 228 | out = self.get_output('-X', utf8_opt, '-c', code, arg, **kw) |
| 229 | args = out.partition(':')[2].rstrip() |
| 230 | self.assertEqual(args, ascii(expected), out) |
| 231 | |
| 232 | check('utf8', [arg_utf8]) |
| 233 | for loc in POSIX_LOCALES: |
nothing calls this directly
no test coverage detected