MCPcopy Index your code
hub / github.com/python/cpython / test_no_dlls_win32

Method test_no_dlls_win32

Lib/test/test_getpath.py:245–266  ·  view source on GitHub ↗

Test a layout on Windows with no DLLs directory.

(self)

Source from the content-addressed store, hash-verified

243 self.assertEqual(expected, actual)
244
245 def test_no_dlls_win32(self):
246 "Test a layout on Windows with no DLLs directory."
247 ns = MockNTNamespace(
248 argv0=r"C:\Python\python.exe",
249 real_executable=r"C:\Python\python.exe",
250 )
251 ns.add_known_xfile(r"C:\Python\python.exe")
252 ns.add_known_file(r"C:\Python\Lib\os.py")
253 expected = dict(
254 executable=r"C:\Python\python.exe",
255 base_executable=r"C:\Python\python.exe",
256 prefix=r"C:\Python",
257 exec_prefix=r"C:\Python",
258 module_search_paths_set=1,
259 module_search_paths=[
260 r"C:\Python\python98.zip",
261 r"C:\Python",
262 r"C:\Python\Lib",
263 ],
264 )
265 actual = getpath(ns, expected)
266 self.assertEqual(expected, actual)
267
268 def test_normal_posix(self):
269 "Test a 'standard' install layout on *nix"

Callers

nothing calls this directly

Calls 5

add_known_xfileMethod · 0.95
add_known_fileMethod · 0.95
MockNTNamespaceClass · 0.85
getpathFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected