Skip to content

Commit c328864

Browse files
committed
directly call statx for a broken symlink
1 parent afe07b8 commit c328864

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Lib/test/test_os/test_os.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ def test_statx_attributes_symlink(self):
890890
os.unlink(self.fname)
891891
with self.subTest(broken=True, follow_symlinks=True):
892892
with self.assertRaises(FileNotFoundError):
893-
self.check_statx_attributes(link, follow_symlinks=True)
893+
os.statx(link, os.STATX_BASIC_STATS, follow_symlinks=True)
894894

895895
with self.subTest(broken=True, follow_symlinks=False):
896896
self.check_statx_attributes(link, follow_symlinks=False)

0 commit comments

Comments
 (0)