LEFT | RIGHT |
1 import array | 1 import array |
2 import unittest | 2 import unittest |
3 import struct | 3 import struct |
4 import warnings | 4 import warnings |
5 warnings.filterwarnings("ignore", "struct integer overflow masking is deprecated
", | 5 warnings.filterwarnings("ignore", "struct integer overflow masking is deprecated
", |
6 DeprecationWarning) | 6 DeprecationWarning) |
7 | 7 |
8 from functools import wraps | 8 from functools import wraps |
9 from test.test_support import TestFailed, verbose, run_unittest | 9 from test.test_support import TestFailed, verbose, run_unittest |
10 | 10 |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 def test_crasher(self): | 582 def test_crasher(self): |
583 self.assertRaises(MemoryError, struct.pack, "357913941c", "a") | 583 self.assertRaises(MemoryError, struct.pack, "357913941c", "a") |
584 | 584 |
585 | 585 |
586 | 586 |
587 def test_main(): | 587 def test_main(): |
588 run_unittest(StructTest) | 588 run_unittest(StructTest) |
589 | 589 |
590 if __name__ == '__main__': | 590 if __name__ == '__main__': |
591 test_main() | 591 test_main() |
LEFT | RIGHT |