'Permission errors are not swallowed'

@unittest.skipIf((sys.platform == 'win32'), "Python    on    Windows    doesn't    have    working    os.chmod().")
def test_readonly_root(self):

    os.chmod(MEDIA_ROOT, 320)
    self.addCleanup(os.chmod, MEDIA_ROOT, 448)
    with self.assertRaises(PermissionError):
        self.obj.testfile.save('foo.txt', SimpleUploadedFile('foo.txt', 'x'), save=False)
