bpo-37834: Fix test on Windows 7 (GH-15377)
authorSteve Dower <steve.dower@python.org>
Thu, 22 Aug 2019 00:42:56 +0000 (17:42 -0700)
committerGitHub <noreply@github.com>
Thu, 22 Aug 2019 00:42:56 +0000 (17:42 -0700)
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')]