Test a 'standard' install layout on Windows.
(self)
| 21 | self.maxDiff = None |
| 22 | |
| 23 | def test_normal_win32(self): |
| 24 | "Test a 'standard' install layout on Windows." |
| 25 | ns = MockNTNamespace( |
| 26 | argv0=r"C:\Python\python.exe", |
| 27 | real_executable=r"C:\Python\python.exe", |
| 28 | ) |
| 29 | ns.add_known_xfile(r"C:\Python\python.exe") |
| 30 | ns.add_known_file(r"C:\Python\Lib\os.py") |
| 31 | ns.add_known_dir(r"C:\Python\DLLs") |
| 32 | expected = dict( |
| 33 | executable=r"C:\Python\python.exe", |
| 34 | base_executable=r"C:\Python\python.exe", |
| 35 | prefix=r"C:\Python", |
| 36 | exec_prefix=r"C:\Python", |
| 37 | module_search_paths_set=1, |
| 38 | module_search_paths=[ |
| 39 | r"C:\Python\python98.zip", |
| 40 | r"C:\Python\DLLs", |
| 41 | r"C:\Python\Lib", |
| 42 | r"C:\Python", |
| 43 | ], |
| 44 | ) |
| 45 | actual = getpath(ns, expected) |
| 46 | self.assertEqual(expected, actual) |
| 47 | |
| 48 | def test_buildtree_win32(self): |
| 49 | "Test an in-build-tree layout on Windows." |
nothing calls this directly
no test coverage detected