Merge master into merge-master-into-features

This commit is contained in:
Daniel Hahler
2018-11-24 13:47:10 +01:00
4 changed files with 9 additions and 11 deletions

View File

@@ -679,7 +679,7 @@ def raises(expected_exception, *args, **kwargs):
loc.update(kwargs)
# print "raises frame scope: %r" % frame.f_locals
try:
code = _pytest._code.Source(code).compile()
code = _pytest._code.Source(code).compile(_genframe=frame)
six.exec_(code, frame.f_globals, loc)
# XXX didn't mean f_globals == f_locals something special?
# this is destroyed here ...