()
| 253 | |
| 254 | @dec.skip_if_not_win32 |
| 255 | def 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 |
nothing calls this directly
no outgoing calls
no test coverage detected