Skip to content

Commit 269c3b4

Browse files
vstinnermiss-islington
authored andcommitted
pythongh-109959: Skip test_glob.test_selflink() flaky test (pythonGH-128812)
(cherry picked from commit 1153e66) Co-authored-by: Victor Stinner <[email protected]>
1 parent e7400d7 commit 269c3b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_glob.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,10 @@ def test_glob_many_open_files(self):
385385
@skip_unless_symlink
386386
class SymlinkLoopGlobTests(unittest.TestCase):
387387

388+
# gh-109959: On Linux, glob._isdir() and glob._lexists() can return False
389+
# randomly when checking the "link/" symbolic link.
390+
# https://github.com/python/cpython/issues/109959#issuecomment-2577550700
391+
@unittest.skip("flaky test")
388392
def test_selflink(self):
389393
tempdir = TESTFN + "_dir"
390394
os.makedirs(tempdir)

0 commit comments

Comments
 (0)