(self)
| 394 | pass |
| 395 | |
| 396 | def test_appexeclink(self): |
| 397 | root = os.path.expandvars(r'%LOCALAPPDATA%\Microsoft\WindowsApps') |
| 398 | if not os.path.isdir(root): |
| 399 | self.skipTest("test requires a WindowsApps directory") |
| 400 | |
| 401 | aliases = [os.path.join(root, a) |
| 402 | for a in fnmatch.filter(os.listdir(root), '*.exe')] |
| 403 | |
| 404 | for alias in aliases: |
| 405 | if support.verbose: |
| 406 | print() |
| 407 | print("Testing with", alias) |
| 408 | st = os.lstat(alias) |
| 409 | self.assertEqual(st, os.stat(alias)) |
| 410 | self.assertFalse(stat.S_ISLNK(st.st_mode)) |
| 411 | self.assertEqual(st.st_reparse_tag, stat.IO_REPARSE_TAG_APPEXECLINK) |
| 412 | self.assertTrue(os.path.isfile(alias)) |
| 413 | # testing the first one we see is sufficient |
| 414 | break |
| 415 | else: |
| 416 | self.skipTest("test requires an app execution alias") |
| 417 | |
| 418 | |
| 419 | class Win32JunctionTests(unittest.TestCase): |
nothing calls this directly
no test coverage detected