mirror of
https://github.com/python/cpython.git
synced 2025-11-08 21:52:45 +00:00
bpo-37834: Fix test on Windows 7 (GH-15377)
This commit is contained in:
parent
06be2c7f35
commit
374be59b8e
1 changed files with 3 additions and 0 deletions
|
|
@ -2466,6 +2466,9 @@ class Win32SymlinkTests(unittest.TestCase):
|
||||||
|
|
||||||
def test_appexeclink(self):
|
def test_appexeclink(self):
|
||||||
root = os.path.expandvars(r'%LOCALAPPDATA%\Microsoft\WindowsApps')
|
root = os.path.expandvars(r'%LOCALAPPDATA%\Microsoft\WindowsApps')
|
||||||
|
if not os.path.isdir(root):
|
||||||
|
self.skipTest("test requires a WindowsApps directory")
|
||||||
|
|
||||||
aliases = [os.path.join(root, a)
|
aliases = [os.path.join(root, a)
|
||||||
for a in fnmatch.filter(os.listdir(root), '*.exe')]
|
for a in fnmatch.filter(os.listdir(root), '*.exe')]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue