Thanks to visit codestin.com Credit goes to github.com
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 6a55d09 commit d7d4feaCopy full SHA for d7d4fea
1 file changed
Lib/test/test_tarfile.py
@@ -1147,7 +1147,10 @@ def test_link_size(self):
1147
target = os.path.join(TEMPDIR, "link_target")
1148
with open(target, "wb") as fobj:
1149
fobj.write(b"aaa")
1150
- os.link(target, link)
+ try:
1151
+ os.link(target, link)
1152
+ except PermissionError as e:
1153
+ self.skipTest('os.link(): %s' % e)
1154
try:
1155
tar = tarfile.open(tmpname, self.mode)
1156
@@ -1609,7 +1612,10 @@ def setUp(self):
1609
1612
with open(self.foo, "wb") as fobj:
1610
1613
fobj.write(b"foo")
1611
1614
- os.link(self.foo, self.bar)
1615
1616
+ os.link(self.foo, self.bar)
1617
1618
1619
1620
self.tar = tarfile.open(tmpname, "w")
1621
self.tar.add(self.foo)
0 commit comments