diff --git a/py/_code/_assertionold.py b/py/_code/_assertionold.py index 986b829fc..7e3000434 100644 --- a/py/_code/_assertionold.py +++ b/py/_code/_assertionold.py @@ -447,7 +447,6 @@ def report_failure(e): def check(s, frame=None): if frame is None: - import sys frame = sys._getframe(1) frame = py.code.Frame(frame) expr = parse(s, 'eval') @@ -518,7 +517,6 @@ def getfailure(e): def run(s, frame=None): if frame is None: - import sys frame = sys._getframe(1) frame = py.code.Frame(frame) module = Interpretable(parse(s, 'exec').node)