Skip to content

Commit 7f17232

Browse files
committed
Fix: Reported actual instead of expected exception type.
1 parent 78f51e6 commit 7f17232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python.test/src/graalpytest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def __enter__(self):
201201

202202
def __exit__(self, exc_type, exc, traceback):
203203
if not exc_type:
204-
assert False, "expected '%r' to raise '%r'" % (self.function, exc_type)
204+
assert False, "expected '%r' to raise '%r'" % (self.function, self.exc_type)
205205
elif self.exc_type in exc_type.mro():
206206
self.exception = exc
207207
return True

0 commit comments

Comments
 (0)