Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4)

Side by Side Diff: Lib/test/test_sys.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Lib/test/test_support.py ('k') | Lib/test/test_tarfile.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import unittest, test.support 1 import unittest, test.support
2 import sys, io, os 2 import sys, io, os
3 import struct 3 import struct
4 import subprocess 4 import subprocess
5 import textwrap 5 import textwrap
6 import warnings 6 import warnings
7 import operator 7 import operator
8 import codecs 8 import codecs
9 9
10 # count the number of test runs, used to create unique 10 # count the number of test runs, used to create unique
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 # bytearray_iterator 658 # bytearray_iterator
659 check(iter(bytearray()), size(h + 'PP')) 659 check(iter(bytearray()), size(h + 'PP'))
660 # cell 660 # cell
661 def get_cell(): 661 def get_cell():
662 x = 42 662 x = 42
663 def inner(): 663 def inner():
664 return x 664 return x
665 return inner 665 return inner
666 check(get_cell().__closure__[0], size(h + 'P')) 666 check(get_cell().__closure__[0], size(h + 'P'))
667 # code 667 # code
668 check(get_cell().__code__, size(h + '5i9Pi3P')) 668 check(get_cell().__code__, size(h + '5i8Pi3P'))
669 # complex 669 # complex
670 check(complex(0,1), size(h + '2d')) 670 check(complex(0,1), size(h + '2d'))
671 # method_descriptor (descriptor object) 671 # method_descriptor (descriptor object)
672 check(str.lower, size(h + '2PP')) 672 check(str.lower, size(h + '2PP'))
673 # classmethod_descriptor (descriptor object) 673 # classmethod_descriptor (descriptor object)
674 # XXX 674 # XXX
675 # member_descriptor (descriptor object) 675 # member_descriptor (descriptor object)
676 import datetime 676 import datetime
677 check(datetime.timedelta.days, size(h + '2PP')) 677 check(datetime.timedelta.days, size(h + '2PP'))
678 # getset_descriptor (descriptor object) 678 # getset_descriptor (descriptor object)
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 # XXX 871 # XXX
872 # sys.flags 872 # sys.flags
873 check(sys.flags, size(vh) + self.P * len(sys.flags)) 873 check(sys.flags, size(vh) + self.P * len(sys.flags))
874 874
875 875
876 def test_main(): 876 def test_main():
877 test.support.run_unittest(SysModuleTest, SizeofTest) 877 test.support.run_unittest(SysModuleTest, SizeofTest)
878 878
879 if __name__ == "__main__": 879 if __name__ == "__main__":
880 test_main() 880 test_main()
OLDNEW
« no previous file with comments | « Lib/test/test_support.py ('k') | Lib/test/test_tarfile.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+