Enable the only tests for sys.gettrace

This commit is contained in:
Amaury Forgeot d'Arc 2011-10-05 22:34:51 +02:00
parent 41d663f0a5
commit c9539d593e
1 changed files with 2 additions and 2 deletions

View File

@ -282,11 +282,11 @@ class TraceTestCase(unittest.TestCase):
self.compare_events(func.func_code.co_firstlineno, self.compare_events(func.func_code.co_firstlineno,
tracer.events, func.events) tracer.events, func.events)
def set_and_retrieve_none(self): def test_set_and_retrieve_none(self):
sys.settrace(None) sys.settrace(None)
assert sys.gettrace() is None assert sys.gettrace() is None
def set_and_retrieve_func(self): def test_set_and_retrieve_func(self):
def fn(*args): def fn(*args):
pass pass