From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 14 Jan 2025 15:32:11 +0000 (+0100) Subject: [3.12] gh-109959: Skip test_glob.test_selflink() flaky test (GH-128812) (#128834) X-Git-Tag: v3.12.9~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=febe67b99322164976843c9547df0452df28352b;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-109959: Skip test_glob.test_selflink() flaky test (GH-128812) (#128834) gh-109959: Skip test_glob.test_selflink() flaky test (GH-128812) (cherry picked from commit 1153e66e20124b8f3484bcaddbc0e252d31161a6) Co-authored-by: Victor Stinner --- diff --git a/Lib/test/test_glob.py b/Lib/test/test_glob.py index e11ea81a7d46..da3d6e2a9a4f 100644 --- a/Lib/test/test_glob.py +++ b/Lib/test/test_glob.py @@ -385,6 +385,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)