painless-software / python-cli-test-helpers

Useful helpers for writing tests for your Python CLI program.
https://python-cli-test-helpers.readthedocs.io
GNU General Public License v3.0
30 stars 4 forks source link

EnvironContext doesn't fully restore environment #7

Closed bittner closed 2 years ago

bittner commented 2 years ago

It looks like the code in EnvironContext doesn't restore all environment variables set when entering the context after leaving the context.

This can be proven by using EnvironContext twice in a test or in two consecutive tests.