]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-109959: Skip test_glob.test_selflink() flaky test (#128812)
authorVictor Stinner <vstinner@python.org>
Tue, 14 Jan 2025 10:18:52 +0000 (11:18 +0100)
committerGitHub <noreply@github.com>
Tue, 14 Jan 2025 10:18:52 +0000 (11:18 +0100)
Lib/test/test_glob.py

index 00187a3fb3537d4896f9da2cbb76bd413774fd89..1a836e34e8712f9d7fd31410e7e1d4f57e653fe4 100644 (file)
@@ -511,6 +511,10 @@ class GlobTests(unittest.TestCase):
 @skip_unless_symlink
 class SymlinkLoopGlobTests(unittest.TestCase):
 
+    # gh-109959: On Linux, glob._isdir() and glob._lexists() can return False
+    # randomly when checking the "link/" symbolic link.
+    # https://github.com/python/cpython/issues/109959#issuecomment-2577550700
+    @unittest.skip("flaky test")
     def test_selflink(self):
         tempdir = TESTFN + "_dir"
         os.makedirs(tempdir)