except as

authorRémi Cardona <remi.cardona@free.fr>
changeset36e43f52b883
branchdefault
phasedraft
hiddenyes
parent revision#4277ea8bb0a0 [test] replace assertTrue(a == b) with assertEqual(a, b)
child revision#65b1684655cc [compat] Remove callable (related to #264017)
files modified by this revision
testlib.py
# HG changeset patch
# User Rémi Cardona <remi.cardona@free.fr>
# Date 1410995122 -7200
# Thu Sep 18 01:05:22 2014 +0200
# Node ID 36e43f52b883eb92f02b01ebe047c34fb9158138
# Parent 4277ea8bb0a002526a2728977b458a81088514d8
except as

diff --git a/testlib.py b/testlib.py
@@ -263,11 +263,11 @@
1          else:
2              if self.exitfirst:
3                  self.shouldStop = True
4              try:
5                  descr = self.getDescription(test)
6 -            except Exception, e:
7 +            except Exception as e:
8                  import pdb; pdb.set_trace()
9              super(SkipAwareTestResultMixin, self).addError(test, err)
10              self._create_pdb(descr, 'error')
11 
12      def addFailure(self, test, err):