]> granicus.if.org Git - python/commitdiff
bpo-37834: Fix test on Windows 7 (GH-15377)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 22 Aug 2019 01:01:22 +0000 (18:01 -0700)
committerGitHub <noreply@github.com>
Thu, 22 Aug 2019 01:01:22 +0000 (18:01 -0700)
(cherry picked from commit 374be59b8e479afa8c7a8ae6e77e98915e2f6d45)

Co-authored-by: Steve Dower <steve.dower@python.org>
Lib/test/test_os.py

index ba9f5c35ae3188e3b4a0a7462491ebc1082ce963..4285931512085902caba82cce6cd04f21a49720e 100644 (file)
@@ -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')]