Skip to content

Commit

Permalink
code/code: remove Frame.exec_() method
Browse files Browse the repository at this point in the history
Not used.
  • Loading branch information
bluetech committed Jul 10, 2020
1 parent fb3d9c3 commit b50df3d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/_pytest/_code/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,6 @@ def eval(self, code, **vars):
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)
Expand Down

0 comments on commit b50df3d

Please sign in to comment.