fix test to actually mean something useful (thanks Jurko)

This commit is contained in:
holger krekel 2011-12-18 10:56:39 +00:00
parent 40187ec9bb
commit 5093d8b925
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ def test_setitem_deleted_meanwhile():
def test_setenv_deleted_meanwhile(): def test_setenv_deleted_meanwhile():
monkeypatch = MonkeyPatch() monkeypatch = MonkeyPatch()
monkeypatch.setenv('XYZ123', 'hello') monkeypatch.setenv('XYZ123', 'hello')
del os.environ['XYZ123']
monkeypatch.undo() monkeypatch.undo()
assert 'XYZ123' not in os.environ assert 'XYZ123' not in os.environ