# -*- coding: utf-8 -*-

import pyxb
import unittest

class TestTrac0132 (unittest.TestCase):
    message = u'bad character \u2620'
    def testDecode (self):
        e = pyxb.PyXBException(self.message)
        self.assertEqual(self.message, e.message)

if __name__ == '__main__':
    unittest.main()

# -*- coding: utf-8 -*-

import sys
import pyxb
import unittest

class TestTrac0132 (unittest.TestCase):
    message = u'bad character \u2620'
    def testDecode (self):
        e = pyxb.PyXBException(self.message)
        if sys.version[:2] > (2, 4):
            self.assertEqual(self.message, e.message)

if __name__ == '__main__':
    unittest.main()

Revise test to support Python 2.4.
Revise test to support Python 2.4.

In this version, base Exception didn't have a .message field.  No wonder I
had added it back in 2009, resulting in trac/132 which removed it.
