LEFT | RIGHT |
1 from test.support import verbose, TestFailed | 1 from test.support import verbose, TestFailed |
2 import sys | 2 import sys |
3 import test.support as support | 3 import test.support as support |
4 import unittest | 4 import unittest |
5 | 5 |
6 maxsize = support.MAX_Py_ssize_t | 6 maxsize = support.MAX_Py_ssize_t |
7 | 7 |
8 # test string formatting operator (I am not sure if this is being tested | 8 # test string formatting operator (I am not sure if this is being tested |
9 # elsewhere but, surely, some of the given cases are *not* tested because | 9 # elsewhere but, surely, some of the given cases are *not* tested because |
10 # they crash python) | 10 # they crash python) |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 pass | 263 pass |
264 else: | 264 else: |
265 raise TestFailed('"%*d"%(maxsize, -127) should fail') | 265 raise TestFailed('"%*d"%(maxsize, -127) should fail') |
266 | 266 |
267 def test_main(): | 267 def test_main(): |
268 support.run_unittest(FormatTest) | 268 support.run_unittest(FormatTest) |
269 | 269 |
270 | 270 |
271 if __name__ == "__main__": | 271 if __name__ == "__main__": |
272 unittest.main() | 272 unittest.main() |
LEFT | RIGHT |