Fix c23f25545f for Python 2.

This commit is contained in:
Valentin Lorentz 2013-08-10 15:25:40 +02:00
parent 1ee8bc3480
commit 029c6993ad

View File

@ -47,7 +47,7 @@ class C(%s
def foo(self): def foo(self):
raise self.MyException()""" % raise self.MyException()""" %
('metaclass=log.MetaFirewall):\n' if sys.version_info[0] >= 3 else ('metaclass=log.MetaFirewall):\n' if sys.version_info[0] >= 3 else
'object):\n__metaclass__ = log.MetaFirewall')) 'object):\n __metaclass__ = log.MetaFirewall'))
def testCFooDoesNotRaise(self): def testCFooDoesNotRaise(self):
c = self.C() c = self.C()