forked from M-Labs/artiq
1
0
Fork 0

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: try:
self.trace.append(100) self.trace.append(100)
if i == 1: if i == 1:
raise _MyException raise _MyException()
elif i == 2: elif i == 2:
raise IndexError raise IndexError()
except IndexError: except IndexError:
self.trace.append(101) self.trace.append(101)
raise raise