fix issue512: show "<notset>" for arguments which might not be set

in monkeypatch plugin.  Improves output in documentation.
This commit is contained in:
holger krekel 2014-05-10 13:49:24 +02:00
parent ffc969b6c2
commit 468b1241a5
2 changed files with 8 additions and 1 deletions

View File

@ -78,6 +78,9 @@ NEXT (2.6)
functions, including unittest-style Classes. If set to False, the
test will not be collected.
- fix issue512: show "<notset>" for arguments which might not be set
in monkeypatch plugin. Improves output in documentation.
2.5.2
-----------------------------------

View File

@ -59,7 +59,11 @@ def derive_importpath(import_path):
notset = object()
class Notset:
def __repr__(self):
return "<notset>"
notset = Notset()
class monkeypatch:
""" object keeping a record of setattr/item/env/syspath changes. """