mirror of https://github.com/m-labs/artiq.git
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:
|
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
|
||||||
|
|
Loading…
Reference in New Issue