[Pytest-commit] commit/pytest: hpk42: fix issue512: show "<notset>" for arguments which might not be set
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Sat May 10 13:49:32 CEST 2014
1 new commit in pytest:
https://bitbucket.org/hpk42/pytest/commits/be00b91e997a/
Changeset: be00b91e997a
User: hpk42
Date: 2014-05-10 13:49:24
Summary: fix issue512: show "<notset>" for arguments which might not be set
in monkeypatch plugin. Improves output in documentation.
Affected #: 2 files
diff -r 26d43b6c78506d6cc267009d3f0fccf9a5066b2a -r be00b91e997a398116539b030e09b25fce816032 CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -78,6 +78,9 @@
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
-----------------------------------
diff -r 26d43b6c78506d6cc267009d3f0fccf9a5066b2a -r be00b91e997a398116539b030e09b25fce816032 _pytest/monkeypatch.py
--- a/_pytest/monkeypatch.py
+++ b/_pytest/monkeypatch.py
@@ -59,7 +59,11 @@
-notset = object()
+class Notset:
+ def __repr__(self):
+ return "<notset>"
+
+notset = Notset()
class monkeypatch:
""" object keeping a record of setattr/item/env/syspath changes. """
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