From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 22 Aug 2019 01:01:22 +0000 (-0700) Subject: bpo-37834: Fix test on Windows 7 (GH-15377) X-Git-Tag: v3.8.0b4~75 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=967d625a6df27fb490f035045ec8fe4675001d63;p=thirdparty%2FPython%2Fcpython.git bpo-37834: Fix test on Windows 7 (GH-15377) (cherry picked from commit 374be59b8e479afa8c7a8ae6e77e98915e2f6d45) Co-authored-by: Steve Dower --- 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 @@ class Win32SymlinkTests(unittest.TestCase): 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')]