forked from M-Labs/artiq
test: use raise X() syntax rather than raise X.
This commit is contained in:
parent
8aa34ee952
commit
abc5a49aaf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user