Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def set_trace(self):
frame = sys._getframe()
assert pdbpp.PdbMeta.called_for_set_trace(frame) is frame
return True
def set_trace():
frame = sys._getframe()
assert pdbpp.PdbMeta.called_for_set_trace(frame) is frame
return True
def set_trace():
frame = sys._getframe()
assert pdbpp.PdbMeta.called_for_set_trace(frame) is frame
return True
def test_called_for_set_trace_false(self):
assert pdbpp.PdbMeta.called_for_set_trace(sys._getframe()) is False
def meta():
frame = sys._getframe()
assert pdbpp.PdbMeta.called_for_set_trace(frame) is False
meta()