Merge master into features

This commit is contained in:
Daniel Hahler
2018-12-14 16:44:43 +01:00
13 changed files with 72 additions and 11 deletions

View File

@@ -718,6 +718,6 @@ class RaisesContext(object):
suppress_exception = issubclass(self.excinfo.type, self.expected_exception)
if sys.version_info[0] == 2 and suppress_exception:
sys.exc_clear()
if self.match_expr and suppress_exception:
if self.match_expr is not None and suppress_exception:
self.excinfo.match(self.match_expr)
return suppress_exception