Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some unittests set environment variables, but then delete them as part of their cleanup process. Deleting them is OK. Any test that needs an environment variable should set that environment variable itself. Once the test process stops, any changes made to the environment will be lost [1]. Before this change, there was one location where an environment variable was restored to its original value instead of deleted. Restoring that variable was unnecessary. This commit was created to prepare for a future commit which will delete HOME before any of the tests even start. Without this change, that future change would crash. You can’t restore a variable that’s been deleted. Fixes #605. [1]: <https://stackoverflow.com/q/716011/7593853>
- Loading branch information