This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author FFY00
Recipients FFY00, barry, eryksun, ucodery
Date 2021-10-26.00:15:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1635207333.62.0.216539045175.issue45545@roundup.psfhosted.org>
In-reply-to
Content
Alternatively, can't we just os.chdir(self._old_cwd) in __enter__ and preemptively fail? IMO it's probably better to just straight up fail if we can chdir back to the original directory than to have relatively fragile recovery logic.
History
Date User Action Args
2021-10-26 00:15:33FFY00setrecipients: + FFY00, barry, eryksun, ucodery
2021-10-26 00:15:33FFY00setmessageid: <1635207333.62.0.216539045175.issue45545@roundup.psfhosted.org>
2021-10-26 00:15:33FFY00linkissue45545 messages
2021-10-26 00:15:33FFY00create