sk- / optimage

Optimage: make the web faster and your repos smaller

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

test_replace in test_optimage_e2e does not work with ro filesytem

sk- opened this issue · comments

When you run the tests from a read-only filesystem the test_replace test fails to replace the file as the image that is used (which got copied with shutil.copy) has read-only permissions.

Setting os.chmod(path, 0o644) solves the issue.