We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c81e8c commit 78980f7Copy full SHA for 78980f7
1 file changed
Lib/test/test_tempfile.py
@@ -1611,9 +1611,13 @@ def test_link_tmpfile(self):
1611
tmp.flush()
1612
fd = tmp.fileno()
1613
1614
- os.link(f'/proc/self/fd/{fd}',
1615
- filename,
1616
- follow_symlinks=True)
+ try:
+ os.link(f'/proc/self/fd/{fd}',
+ filename,
1617
+ follow_symlinks=True)
1618
+ except PermissionError as exc:
1619
+ # gh-136156: link() fails with PermissionError on Android
1620
+ self.skipTest(str(exc))
1621
with open(filename) as fp:
1622
self.assertEqual(fp.read(), "hello")
1623
0 commit comments