LEFT | RIGHT |
1 # -*- coding: iso-8859-1 -*- | 1 # -*- coding: iso-8859-1 -*- |
2 """ Test script for the Unicode implementation. | 2 """ Test script for the Unicode implementation. |
3 | 3 |
4 Written by Marc-Andre Lemburg (mal@lemburg.com). | 4 Written by Marc-Andre Lemburg (mal@lemburg.com). |
5 | 5 |
6 (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. | 6 (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. |
7 | 7 |
8 """#" | 8 """#" |
9 import codecs | 9 import codecs |
10 import struct | 10 import struct |
(...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1197 alloc = lambda: "a" * (sys.maxsize // charwidth * 2) | 1197 alloc = lambda: "a" * (sys.maxsize // charwidth * 2) |
1198 self.assertRaises(MemoryError, alloc) | 1198 self.assertRaises(MemoryError, alloc) |
1199 self.assertRaises(MemoryError, alloc) | 1199 self.assertRaises(MemoryError, alloc) |
1200 | 1200 |
1201 | 1201 |
1202 def test_main(): | 1202 def test_main(): |
1203 support.run_unittest(__name__) | 1203 support.run_unittest(__name__) |
1204 | 1204 |
1205 if __name__ == "__main__": | 1205 if __name__ == "__main__": |
1206 test_main() | 1206 test_main() |
LEFT | RIGHT |