ywangd / stash

StaSh - Shell for Pythonista
MIT License
1.94k stars 227 forks source link

Recovering from a broken StaSH-installed pytest #425

Open treyharris opened 3 years ago

treyharris commented 3 years ago

I broke pytest inadvertently after I noticed a bug that was fixed in newer releases of pytest; I used StaSH (in Python 3) to do pip install pytest to install version 6.1.2.

Unfortunately, now while “Run Doctests” still works, “Run Unit Tests” does not; it fails with the attached traceback, ending with PermissionError: [Errno 1] Operation not permitted: '/private/var/mobile/Library/Mobile Documents/pytest.ini'.

How can I repair this issue? (I can work around the bug that led me to try to upgrade pytest, so just how to rollback would be great.)

unnitest-output.txt