This commit was manufactured by cvs2svn to create tag 'r23b1-mac'.
[python/dscho.git] / Lib / test / test_str.py
blobb9f48459bb6a5c52335dfaf207bc16d650498f55
1 import unittest
2 from test import test_support, string_tests
5 class StrTest(
6 string_tests.CommonTest,
7 string_tests.MixinStrUnicodeUserStringTest,
8 string_tests.MixinStrUserStringTest
9 ):
11 type2test = str
13 # We don't need to propagate to str
14 def fixtype(self, obj):
15 return obj
17 def test_formatting(self):
18 string_tests.MixinStrUnicodeUserStringTest.test_formatting(self)
19 self.assertRaises(OverflowError, '%c'.__mod__, 0x1234)
21 def test_main():
22 suite = unittest.TestSuite()
23 suite.addTest(unittest.makeSuite(StrTest))
24 test_support.run_suite(suite)
26 if __name__ == "__main__":
27 test_main()