(self)
| 941 | 'requires FS encoding to match locale') |
| 942 | @support.requires_subprocess() |
| 943 | def test_ioencoding_nonascii(self): |
| 944 | env = dict(os.environ) |
| 945 | |
| 946 | env["PYTHONIOENCODING"] = "" |
| 947 | p = subprocess.Popen([sys.executable, "-c", |
| 948 | 'print(%a)' % os_helper.FS_NONASCII], |
| 949 | stdout=subprocess.PIPE, env=env) |
| 950 | out = p.communicate()[0].strip() |
| 951 | self.assertEqual(out, os.fsencode(os_helper.FS_NONASCII)) |
| 952 | |
| 953 | @unittest.skipIf(sys.base_prefix != sys.prefix, |
| 954 | 'Test is not venv-compatible') |
nothing calls this directly
no test coverage detected