Skip to content

Commit 6c8f5f1

Browse files
committed
gh-157899: removed unnecessary guard for test.
1 parent 20fa1e2 commit 6c8f5f1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎Lib/test/test_os/test_posix.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,8 +1947,7 @@ def test_readlink_with_fd_throws_not_implemented_error(self):
19471947
with self.assertRaises(NotImplementedError):
19481948
os.readlink(fd)
19491949

1950-
@unittest.skipUnless(hasattr(os, "supports_fd") and hasattr(os, "readlink"),
1951-
"feature not supported on this platform")
1950+
@unittest.skipUnless(hasattr(os, "readlink"), "needs os.readlink")
19521951
def test_readlink_is_in_supports_fd_on_supported_platforms(self):
19531952
self.assertEqual(os.readlink in os.supports_fd, self._support_readlink_with_fd)
19541953

0 commit comments

Comments
 (0)