[py-svn] commit/pytest: hpk42: fix test to actually mean something useful (thanks Jurko)

Bitbucket commits-noreply at bitbucket.org
Sun Dec 18 11:56:48 CET 2011


1 new commit in pytest:


https://bitbucket.org/hpk42/pytest/changeset/e4d9933f66a9/
changeset:   e4d9933f66a9
user:        hpk42
date:        2011-12-18 11:56:39
summary:     fix test to actually mean something useful (thanks Jurko)
affected #:  1 file

diff -r 52c436be8d635a7f49f741b24f0bdc03d1de0036 -r e4d9933f66a9ddb362c605ca73dbca3147c8174b testing/test_monkeypatch.py
--- a/testing/test_monkeypatch.py
+++ b/testing/test_monkeypatch.py
@@ -70,6 +70,7 @@
 def test_setenv_deleted_meanwhile():
     monkeypatch = MonkeyPatch()
     monkeypatch.setenv('XYZ123', 'hello')
+    del os.environ['XYZ123']
     monkeypatch.undo()
     assert 'XYZ123' not in os.environ

Repository URL: https://bitbucket.org/hpk42/pytest/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the pytest-commit mailing list