Skip to content

Commit 00cb444

Browse files
committed
Add more context in the skip message
1 parent 78980f7 commit 00cb444

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_tempfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1617,7 +1617,8 @@ def test_link_tmpfile(self):
16171617
follow_symlinks=True)
16181618
except PermissionError as exc:
16191619
# gh-136156: link() fails with PermissionError on Android
1620-
self.skipTest(str(exc))
1620+
self.skipTest(f"os.link: {exc!r}")
1621+
16211622
with open(filename) as fp:
16221623
self.assertEqual(fp.read(), "hello")
16231624

0 commit comments

Comments
 (0)