Fix assertion.rewrite on read-only filesystem
This commit is contained in:
parent
4337e9c4ba
commit
7371d436d2
|
@ -122,7 +122,7 @@ class AssertionRewritingHook(object):
|
|||
# One of the path components was not a directory, likely
|
||||
# because we're in a zip file.
|
||||
write = False
|
||||
elif e == errno.EACCES:
|
||||
elif e in [errno.EACCES, errno.EROFS]:
|
||||
state.trace("read only directory: %r" % fn_pypath.dirname)
|
||||
write = False
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue