From 85ef2bf698aa0f3732d161e99104f9df40a632bc Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Fri, 10 Jul 2020 12:00:14 +0300 Subject: [PATCH] code/code: remove Frame.exec_() method Not used. --- src/_pytest/_code/code.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/_pytest/_code/code.py b/src/_pytest/_code/code.py index 9c724c8b6..c1e6f49f3 100644 --- a/src/_pytest/_code/code.py +++ b/src/_pytest/_code/code.py @@ -145,15 +145,6 @@ class Frame: f_locals.update(vars) return eval(code, self.f_globals, f_locals) - def exec_(self, code, **vars) -> None: - """Exec 'code' in the frame. - - 'vars' are optional; additional local variables. - """ - f_locals = self.f_locals.copy() - f_locals.update(vars) - exec(code, self.f_globals, f_locals) - def repr(self, object: object) -> str: """Return a 'safe' (non-recursive, one-line) string repr for 'object'.""" return saferepr(object)