]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-35994: add sub dir for sub2_tree in os.walk test if symlink is not supported...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 15 Feb 2019 05:23:07 +0000 (21:23 -0800)
committerGitHub <noreply@github.com>
Fri, 15 Feb 2019 05:23:07 +0000 (21:23 -0800)
https://bugs.python.org/issue35994
(cherry picked from commit 3e028b2d40370dc986b6f3146a7ae927bc119f97)

Co-authored-by: pxinwr <peixing.xin@windriver.com>
Lib/test/test_os.py

index a50eb7e296e62a2201e5272187dda96a9d595402..ff22fbeee7b1f3994b6bd69c004df15bc1caf599 100644 (file)
@@ -923,7 +923,7 @@ class WalkTests(unittest.TestCase):
                               ["broken_link", "broken_link2", "broken_link3",
                                "tmp3"])
         else:
-            self.sub2_tree = (sub2_path, [], ["tmp3"])
+            self.sub2_tree = (sub2_path, ["SUB21"], ["tmp3"])
 
         os.chmod(sub21_path, 0)
         try: