Commit da76aa46 authored by Nicolas Dumazet's avatar Nicolas Dumazet

fix class decorator for Python 2.4


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39320 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 52a78aa5
...@@ -6,7 +6,6 @@ import transaction ...@@ -6,7 +6,6 @@ import transaction
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.backportUnittest import expectedFailure from Products.ERP5Type.tests.backportUnittest import expectedFailure
@expectedFailure # XXX remove me once portal type classes code is committed
class TestNewStyleClasses(ERP5TypeTestCase): class TestNewStyleClasses(ERP5TypeTestCase):
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
...@@ -127,6 +126,10 @@ class TestNewStyleClasses(ERP5TypeTestCase): ...@@ -127,6 +126,10 @@ class TestNewStyleClasses(ERP5TypeTestCase):
finally: finally:
# reset the type # reset the type
person_type.setTypeClass('Person') person_type.setTypeClass('Person')
# XXX remove me once portal type classes code is committed
TestNewStyleClasses = expectedFailure(TestNewStyleClasses)
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestNewStyleClasses)) suite.addTest(unittest.makeSuite(TestNewStyleClasses))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment