From abc5a49aaf2fff8dd5888c353ba65a260f004f2e Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 31 Dec 2015 22:02:57 +0800 Subject: [PATCH] test: use raise X() syntax rather than raise X. --- artiq/test/coredevice/portability.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/test/coredevice/portability.py b/artiq/test/coredevice/portability.py index 534ede3f0..0c78cc7a2 100644 --- a/artiq/test/coredevice/portability.py +++ b/artiq/test/coredevice/portability.py @@ -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