LEFT | RIGHT |
1 # Python test set -- part 6, built-in types | 1 # Python test set -- part 6, built-in types |
2 | 2 |
3 from test.support import run_unittest, run_with_locale | 3 from test.support import run_unittest, run_with_locale |
4 import unittest | 4 import unittest |
5 import sys | 5 import sys |
6 import locale | 6 import locale |
7 | 7 |
8 class TypesTests(unittest.TestCase): | 8 class TypesTests(unittest.TestCase): |
9 | 9 |
10 def test_truth_values(self): | 10 def test_truth_values(self): |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 | 621 |
622 # Make sure commas aren't allowed with various type codes | 622 # Make sure commas aren't allowed with various type codes |
623 for code in 'xXobns': | 623 for code in 'xXobns': |
624 self.assertRaises(ValueError, format, 0, ',' + code) | 624 self.assertRaises(ValueError, format, 0, ',' + code) |
625 | 625 |
626 def test_main(): | 626 def test_main(): |
627 run_unittest(TypesTests) | 627 run_unittest(TypesTests) |
628 | 628 |
629 if __name__ == '__main__': | 629 if __name__ == '__main__': |
630 test_main() | 630 test_main() |
LEFT | RIGHT |