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

Delta Between Two Patch Sets: Lib/test/test_sys.py

Issue 29259: Add tp_fastcall to PyTypeObject: support FASTCALL calling convention for all callable objects
Left Patch Set: Created 3 years ago
Right Patch Set: Created 2 years, 12 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 import unittest, test.support 1 import unittest, test.support
2 from test.support.script_helper import assert_python_ok, assert_python_failure 2 from test.support.script_helper import assert_python_ok, assert_python_failure
3 import sys, io, os 3 import sys, io, os
4 import struct 4 import struct
5 import subprocess 5 import subprocess
6 import textwrap 6 import textwrap
7 import warnings 7 import warnings
8 import operator 8 import operator
9 import codecs 9 import codecs
10 import gc 10 import gc
(...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 check(str.lower, size('3PP')) 933 check(str.lower, size('3PP'))
934 # classmethod_descriptor (descriptor object) 934 # classmethod_descriptor (descriptor object)
935 # XXX 935 # XXX
936 # member_descriptor (descriptor object) 936 # member_descriptor (descriptor object)
937 import datetime 937 import datetime
938 check(datetime.timedelta.days, size('3PP')) 938 check(datetime.timedelta.days, size('3PP'))
939 # getset_descriptor (descriptor object) 939 # getset_descriptor (descriptor object)
940 import collections 940 import collections
941 check(collections.defaultdict.default_factory, size('3PP')) 941 check(collections.defaultdict.default_factory, size('3PP'))
942 # wrapper_descriptor (descriptor object) 942 # wrapper_descriptor (descriptor object)
943 check(int.__add__, size('3P2P')) 943 check(int.__add__, size('3P2Pi'))
944 # method-wrapper (descriptor object) 944 # method-wrapper (descriptor object)
945 check({}.__iter__, size('2P')) 945 check({}.__iter__, size('2P'))
946 # dict 946 # dict
947 check({}, size('nQ2P') + calcsize('2nP2n') + 8 + (8*2//3)*calcsize('n2P' )) 947 check({}, size('nQ2P') + calcsize('2nP2n') + 8 + (8*2//3)*calcsize('n2P' ))
948 longdict = {1:1, 2:2, 3:3, 4:4, 5:5, 6:6, 7:7, 8:8} 948 longdict = {1:1, 2:2, 3:3, 4:4, 5:5, 6:6, 7:7, 8:8}
949 check(longdict, size('nQ2P') + calcsize('2nP2n') + 16 + (16*2//3)*calcsi ze('n2P')) 949 check(longdict, size('nQ2P') + calcsize('2nP2n') + 16 + (16*2//3)*calcsi ze('n2P'))
950 # dictionary-keyview 950 # dictionary-keyview
951 check({}.keys(), size('P')) 951 check({}.keys(), size('P'))
952 # dictionary-valueview 952 # dictionary-valueview
953 check({}.values(), size('P')) 953 check({}.values(), size('P'))
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 cur = sys.get_asyncgen_hooks() 1224 cur = sys.get_asyncgen_hooks()
1225 self.assertIsNone(cur.firstiter) 1225 self.assertIsNone(cur.firstiter)
1226 self.assertIsNone(cur.finalizer) 1226 self.assertIsNone(cur.finalizer)
1227 1227
1228 1228
1229 def test_main(): 1229 def test_main():
1230 test.support.run_unittest(SysModuleTest, SizeofTest) 1230 test.support.run_unittest(SysModuleTest, SizeofTest)
1231 1231
1232 if __name__ == "__main__": 1232 if __name__ == "__main__":
1233 test_main() 1233 test_main()
LEFTRIGHT

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