fix issue512: show "<notset>" for arguments which might not be set
in monkeypatch plugin. Improves output in documentation.
This commit is contained in:
parent
ffc969b6c2
commit
468b1241a5
|
@ -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
|
||||
-----------------------------------
|
||||
|
|
|
@ -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. """
|
||||
|
|
Loading…
Reference in New Issue