pykd/test/scripts/testutils.py
SND\EreTIk_cp 487b4a8f6d [0.1.x] +reset for EventHandler
git-svn-id: https://pykd.svn.codeplex.com/svn@78241 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:33:17 +04:00

17 lines
335 B
Python

"""PyKd test heplers/wrappers"""
import pykd
class ContextCallIt:
"""Context manager/with statement"""
def __init__(self, callIt):
self.callIt = callIt
def __enter__(self):
return self
def __exit__(self, exc_type, exc_value, exc_tb):
try: self.callIt()
except: pass