2
0
mirror of https://github.com/m-labs/artiq.git synced 2025-01-29 20:00:20 +08:00

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

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