[Python-checkins] bpo-37834: Fix test on Windows 7 (GH-15377)
Steve Dower
webhook-mailer at python.org
Wed Aug 21 20:43:00 EDT 2019
https://github.com/python/cpython/commit/374be59b8e479afa8c7a8ae6e77e98915e2f6d45
commit: 374be59b8e479afa8c7a8ae6e77e98915e2f6d45
branch: master
author: Steve Dower <steve.dower at python.org>
committer: GitHub <noreply at github.com>
date: 2019-08-21T17:42:56-07:00
summary:
bpo-37834: Fix test on Windows 7 (GH-15377)
files:
M Lib/test/test_os.py
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index ba9f5c35ae31..428593151208 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -2466,6 +2466,9 @@ def test_buffer_overflow(self):
def test_appexeclink(self):
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)
for a in fnmatch.filter(os.listdir(root), '*.exe')]
More information about the Python-checkins
mailing list