Skip to content

Commit 374be59

Browse files
authored
bpo-37834: Fix test on Windows 7 (GH-15377)
1 parent 06be2c7 commit 374be59

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_os.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2466,6 +2466,9 @@ def test_buffer_overflow(self):
24662466

24672467
def test_appexeclink(self):
24682468
root = os.path.expandvars(r'%LOCALAPPDATA%\Microsoft\WindowsApps')
2469+
if not os.path.isdir(root):
2470+
self.skipTest("test requires a WindowsApps directory")
2471+
24692472
aliases = [os.path.join(root, a)
24702473
for a in fnmatch.filter(os.listdir(root), '*.exe')]
24712474

0 commit comments

Comments
 (0)