Test handling of Unicode paths
(self)
| 576 | |
| 577 | @unittest.skipUnless(os.name == 'nt', 'only relevant on Windows') |
| 578 | def test_unicode_in_batch_file(self): |
| 579 | """ |
| 580 | Test handling of Unicode paths |
| 581 | """ |
| 582 | rmtree(self.env_dir) |
| 583 | env_dir = os.path.join(os.path.realpath(self.env_dir), 'ϼўТλФЙ') |
| 584 | builder = venv.EnvBuilder(clear=True) |
| 585 | builder.create(env_dir) |
| 586 | activate = os.path.join(env_dir, self.bindir, 'activate.bat') |
| 587 | out, err = check_output( |
| 588 | [activate, '&', self.exe, '-c', 'print(0)'], |
| 589 | encoding='oem', |
| 590 | ) |
| 591 | self.assertEqual(out.strip(), '0') |
| 592 | |
| 593 | @unittest.skipUnless(os.name == 'nt' and can_symlink(), |
| 594 | 'symlinks on Windows') |
nothing calls this directly
no test coverage detected