test: use raise X() syntax rather than raise X.

This commit is contained in:
whitequark 2015-12-31 22:02:57 +08:00
parent 8aa34ee952
commit abc5a49aaf
1 changed files with 2 additions and 2 deletions

View File

@ -143,9 +143,9 @@ class _Exceptions(EnvExperiment):
try:
self.trace.append(100)
if i == 1:
raise _MyException
raise _MyException()
elif i == 2:
raise IndexError
raise IndexError()
except IndexError:
self.trace.append(101)
raise