Merge branch 'master' into issue_776

pull/845/head
Alex Willmer 3 years ago committed by GitHub
commit 241d276958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -86,6 +86,8 @@ class IsGoodTempDirTest(unittest2.TestCase):
self.assertFalse(self.func(bleh)) self.assertFalse(self.func(bleh))
self.assertEquals(open(bleh).read(), 'derp') self.assertEquals(open(bleh).read(), 'derp')
@unittest2.skipIf(
os.geteuid() == 0, 'writes by root ignore directory permissions')
def test_unwriteable(self): def test_unwriteable(self):
with NamedTemporaryDirectory() as temp_path: with NamedTemporaryDirectory() as temp_path:
os.chmod(temp_path, 0) os.chmod(temp_path, 0)

Loading…
Cancel
Save