summaryrefslogtreecommitdiff
path: root/pytest.py
diff options
context:
space:
mode:
authorPierre-Yves David <pierre-yves.david@logilab.fr>2008-07-03 12:09:33 +0200
committerPierre-Yves David <pierre-yves.david@logilab.fr>2008-07-03 12:09:33 +0200
commit20337244434d7501023c6964906b8dd7c7450baa (patch)
tree5f4b8d4bc0223ba825b3cbb4833e88c91c6cf259 /pytest.py
parentb6be80bf7dcf305ea5d4b91e0c089ff5b646b8d1 (diff)
downloadlogilab-common-20337244434d7501023c6964906b8dd7c7450baa.tar.gz
fix pause_tracing
Diffstat (limited to 'pytest.py')
-rw-r--r--pytest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pytest.py b/pytest.py
index d68163e..b714273 100644
--- a/pytest.py
+++ b/pytest.py
@@ -98,7 +98,7 @@ class TraceController(object):
def pause_tracing(cls):
if not cls.nesting:
- cls.tracefunc = getattr(sys, '__settrace__', sys.settrace)
+ cls.tracefunc = staticmethod(getattr(sys, '__settrace__', sys.settrace))
cls.oldtracer = getattr(sys, '__tracer__', None)
sys.__notrace__ = True
cls.tracefunc(None)