]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-109959: Skip test_glob.test_selflink() flaky test (GH-128812) (#128821)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 14 Jan 2025 10:55:33 +0000 (11:55 +0100)
committerGitHub <noreply@github.com>
Tue, 14 Jan 2025 10:55:33 +0000 (10:55 +0000)
gh-109959: Skip test_glob.test_selflink() flaky test (GH-128812)
(cherry picked from commit 1153e66e20124b8f3484bcaddbc0e252d31161a6)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_glob.py

index b72640bd871ba6562c754cdc14a50f4cdbd3047b..b52c12f4b6cf145ad6d1067d6c2cf2f561fc2f96 100644 (file)
@@ -510,6 +510,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)