Fix assertion.rewrite on read-only filesystem

This commit is contained in:
David Röthlisberger 2014-10-17 21:18:37 +01:00
parent 4337e9c4ba
commit 7371d436d2
1 changed files with 1 additions and 1 deletions

View File

@ -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: