MCPcopy Create free account
hub / github.com/ipython/ipython / test_get_long_path_name_win32

Function test_get_long_path_name_win32

IPython/utils/tests/test_path.py:255–266  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

253
254@dec.skip_if_not_win32
255def test_get_long_path_name_win32():
256 with TemporaryDirectory() as tmpdir:
257
258 # Make a long path. Expands the path of tmpdir prematurely as it may already have a long
259 # path component, so ensure we include the long form of it
260 long_path = os.path.join(path.get_long_path_name(tmpdir), 'this is my long path name')
261 os.makedirs(long_path)
262
263 # Test to see if the short path evaluates correctly.
264 short_path = os.path.join(tmpdir, 'THISIS~1')
265 evaluated_path = path.get_long_path_name(short_path)
266 nt.assert_equal(evaluated_path.lower(), long_path.lower())
267
268
269@dec.skip_win32

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected