summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/case.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/unittest/case.py')
-rw-r--r--Lib/unittest/case.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py
index 63408e3..4acfa65 100644
--- a/Lib/unittest/case.py
+++ b/Lib/unittest/case.py
@@ -91,7 +91,7 @@ class _AssertRaisesContext(object):
self.expected_regexp = expected_regexp
def __enter__(self):
- pass
+ return self
def __exit__(self, exc_type, exc_value, tb):
if exc_type is None: