diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/clinic.test.c | 124 | ||||
-rw-r--r-- | Lib/test/test_clinic.py | 2 | ||||
-rw-r--r-- | Lib/test/test_sys.py | 8 |
3 files changed, 98 insertions, 36 deletions
diff --git a/Lib/test/clinic.test.c b/Lib/test/clinic.test.c index cf7cff8..8bc6d51 100644 --- a/Lib/test/clinic.test.c +++ b/Lib/test/clinic.test.c @@ -2176,9 +2176,11 @@ test_keywords(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObjec static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('a'), _Py_LATIN1_CHR('b'), }, }; #undef NUM_KEYWORDS @@ -2214,7 +2216,7 @@ exit: static PyObject * test_keywords_impl(PyObject *module, PyObject *a, PyObject *b) -/*[clinic end generated code: output=5411fdee0a85d60d input=0d3484844749c05b]*/ +/*[clinic end generated code: output=591462ba3858e446 input=0d3484844749c05b]*/ /*[clinic input] @@ -2247,9 +2249,11 @@ test_keywords_kwonly(PyObject *module, PyObject *const *args, Py_ssize_t nargs, static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('a'), _Py_LATIN1_CHR('b'), }, }; #undef NUM_KEYWORDS @@ -2285,7 +2289,7 @@ exit: static PyObject * test_keywords_kwonly_impl(PyObject *module, PyObject *a, PyObject *b) -/*[clinic end generated code: output=38b11b4dd0a94399 input=384adc78bfa0bff7]*/ +/*[clinic end generated code: output=620bb64efa62d69b input=384adc78bfa0bff7]*/ /*[clinic input] @@ -2319,9 +2323,11 @@ test_keywords_opt(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyO static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('a'), _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), }, }; #undef NUM_KEYWORDS @@ -2370,7 +2376,7 @@ exit: static PyObject * test_keywords_opt_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c) -/*[clinic end generated code: output=c59ecb8eca9880cf input=eda7964f784f4607]*/ +/*[clinic end generated code: output=3ea21673d129218c input=eda7964f784f4607]*/ /*[clinic input] @@ -2406,9 +2412,11 @@ test_keywords_opt_kwonly(PyObject *module, PyObject *const *args, Py_ssize_t nar static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('a'), _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), }, }; #undef NUM_KEYWORDS @@ -2468,7 +2476,7 @@ exit: static PyObject * test_keywords_opt_kwonly_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d) -/*[clinic end generated code: output=b9572975a3e5d857 input=209387a4815e5082]*/ +/*[clinic end generated code: output=1e5fbe4eebfd40a5 input=209387a4815e5082]*/ /*[clinic input] @@ -2503,9 +2511,11 @@ test_keywords_kwonly_opt(PyObject *module, PyObject *const *args, Py_ssize_t nar static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('a'), _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), }, }; #undef NUM_KEYWORDS @@ -2554,7 +2564,7 @@ exit: static PyObject * test_keywords_kwonly_opt_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c) -/*[clinic end generated code: output=94114334841ff55a input=18393cc64fa000f4]*/ +/*[clinic end generated code: output=bac8882cbcd50151 input=18393cc64fa000f4]*/ /*[clinic input] @@ -2587,9 +2597,11 @@ test_posonly_keywords(PyObject *module, PyObject *const *args, Py_ssize_t nargs, static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('b'), }, }; #undef NUM_KEYWORDS @@ -2625,7 +2637,7 @@ exit: static PyObject * test_posonly_keywords_impl(PyObject *module, PyObject *a, PyObject *b) -/*[clinic end generated code: output=4abfbb43b77fd29a input=1767b0ebdf06060e]*/ +/*[clinic end generated code: output=7ddf55a744ba53dc input=1767b0ebdf06060e]*/ /*[clinic input] @@ -2659,9 +2671,11 @@ test_posonly_kwonly(PyObject *module, PyObject *const *args, Py_ssize_t nargs, P static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('c'), }, }; #undef NUM_KEYWORDS @@ -2697,7 +2711,7 @@ exit: static PyObject * test_posonly_kwonly_impl(PyObject *module, PyObject *a, PyObject *c) -/*[clinic end generated code: output=9fe05c76d80d63a9 input=9042f2818f664839]*/ +/*[clinic end generated code: output=095a4e17e22609bc input=9042f2818f664839]*/ /*[clinic input] @@ -2733,9 +2747,11 @@ test_posonly_keywords_kwonly(PyObject *module, PyObject *const *args, Py_ssize_t static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), }, }; #undef NUM_KEYWORDS @@ -2774,7 +2790,7 @@ exit: static PyObject * test_posonly_keywords_kwonly_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c) -/*[clinic end generated code: output=de2b8c631dc1b5d3 input=29546ebdca492fea]*/ +/*[clinic end generated code: output=2f03aff955026341 input=29546ebdca492fea]*/ /*[clinic input] @@ -2810,9 +2826,11 @@ test_posonly_keywords_opt(PyObject *module, PyObject *const *args, Py_ssize_t na static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), }, }; #undef NUM_KEYWORDS @@ -2863,7 +2881,7 @@ exit: static PyObject * test_posonly_keywords_opt_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d) -/*[clinic end generated code: output=70002e6beef31864 input=cdf5a9625e554e9b]*/ +/*[clinic end generated code: output=2c8b2ca42f821c66 input=cdf5a9625e554e9b]*/ /*[clinic input] @@ -2898,9 +2916,11 @@ test_posonly_keywords_opt2(PyObject *module, PyObject *const *args, Py_ssize_t n static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), }, }; #undef NUM_KEYWORDS @@ -2949,7 +2969,7 @@ exit: static PyObject * test_posonly_keywords_opt2_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c) -/*[clinic end generated code: output=b0f78abf242565cf input=1581299d21d16f14]*/ +/*[clinic end generated code: output=969a3b2b020310f1 input=1581299d21d16f14]*/ /*[clinic input] @@ -2985,9 +3005,11 @@ test_posonly_opt_keywords_opt(PyObject *module, PyObject *const *args, Py_ssize_ static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), }, }; #undef NUM_KEYWORDS @@ -3043,7 +3065,7 @@ exit: static PyObject * test_posonly_opt_keywords_opt_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d) -/*[clinic end generated code: output=75708b03d2837419 input=408798ec3d42949f]*/ +/*[clinic end generated code: output=02bf5e64403946fc input=408798ec3d42949f]*/ /*[clinic input] @@ -3080,9 +3102,11 @@ test_posonly_kwonly_opt(PyObject *module, PyObject *const *args, Py_ssize_t narg static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), }, }; #undef NUM_KEYWORDS @@ -3133,7 +3157,7 @@ exit: static PyObject * test_posonly_kwonly_opt_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d) -/*[clinic end generated code: output=3aab93ed7b9cc713 input=8d8e5643bbbc2309]*/ +/*[clinic end generated code: output=26510e61948015e8 input=8d8e5643bbbc2309]*/ /*[clinic input] @@ -3169,9 +3193,11 @@ test_posonly_kwonly_opt2(PyObject *module, PyObject *const *args, Py_ssize_t nar static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), }, }; #undef NUM_KEYWORDS @@ -3220,7 +3246,7 @@ exit: static PyObject * test_posonly_kwonly_opt2_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c) -/*[clinic end generated code: output=ac73a9a84a83e0c7 input=f7e5eed94f75fff0]*/ +/*[clinic end generated code: output=b31416e16c908756 input=f7e5eed94f75fff0]*/ /*[clinic input] @@ -3257,9 +3283,11 @@ test_posonly_opt_kwonly_opt(PyObject *module, PyObject *const *args, Py_ssize_t static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), }, }; #undef NUM_KEYWORDS @@ -3315,7 +3343,7 @@ exit: static PyObject * test_posonly_opt_kwonly_opt_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d) -/*[clinic end generated code: output=21a1bfee0c50ec98 input=1e557dc979d120fd]*/ +/*[clinic end generated code: output=dc2337647059cb51 input=1e557dc979d120fd]*/ /*[clinic input] @@ -3354,9 +3382,11 @@ test_posonly_keywords_kwonly_opt(PyObject *module, PyObject *const *args, Py_ssi static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), _Py_LATIN1_CHR('e'), }, }; #undef NUM_KEYWORDS @@ -3410,7 +3440,7 @@ static PyObject * test_posonly_keywords_kwonly_opt_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d, PyObject *e) -/*[clinic end generated code: output=60ac8589c5331fc9 input=c3884a4f956fdc89]*/ +/*[clinic end generated code: output=b7adeae40c9833a4 input=c3884a4f956fdc89]*/ /*[clinic input] @@ -3447,9 +3477,11 @@ test_posonly_keywords_kwonly_opt2(PyObject *module, PyObject *const *args, Py_ss static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), }, }; #undef NUM_KEYWORDS @@ -3500,7 +3532,7 @@ exit: static PyObject * test_posonly_keywords_kwonly_opt2_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d) -/*[clinic end generated code: output=349e1a19c507956a input=68d01d7c0f6dafb0]*/ +/*[clinic end generated code: output=827a349e36e89c82 input=68d01d7c0f6dafb0]*/ /*[clinic input] @@ -3540,9 +3572,11 @@ test_posonly_keywords_opt_kwonly_opt(PyObject *module, PyObject *const *args, Py static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), _Py_LATIN1_CHR('e'), }, }; #undef NUM_KEYWORDS @@ -3605,7 +3639,7 @@ static PyObject * test_posonly_keywords_opt_kwonly_opt_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d, PyObject *e) -/*[clinic end generated code: output=94787c9e20861a56 input=d0883d45876f186c]*/ +/*[clinic end generated code: output=bcb0088555123966 input=d0883d45876f186c]*/ /*[clinic input] @@ -3645,9 +3679,11 @@ test_posonly_keywords_opt2_kwonly_opt(PyObject *module, PyObject *const *args, P static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), _Py_LATIN1_CHR('e'), }, }; #undef NUM_KEYWORDS @@ -3715,7 +3751,7 @@ static PyObject * test_posonly_keywords_opt2_kwonly_opt_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d, PyObject *e) -/*[clinic end generated code: output=ea8664ae9fdb4769 input=c95e2e1ec93035ad]*/ +/*[clinic end generated code: output=a22d1276d4c2c9c7 input=c95e2e1ec93035ad]*/ /*[clinic input] @@ -3757,9 +3793,11 @@ test_posonly_opt_keywords_opt_kwonly_opt(PyObject *module, PyObject *const *args static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), _Py_LATIN1_CHR('e'), _Py_LATIN1_CHR('f'), }, }; #undef NUM_KEYWORDS @@ -3835,7 +3873,7 @@ test_posonly_opt_keywords_opt_kwonly_opt_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d, PyObject *e, PyObject *f) -/*[clinic end generated code: output=6e0ee12cf458acb1 input=9914857713c5bbf8]*/ +/*[clinic end generated code: output=ebdbe695ee85a2ea input=9914857713c5bbf8]*/ /*[clinic input] test_keyword_only_parameter @@ -3867,9 +3905,11 @@ test_keyword_only_parameter(PyObject *module, PyObject *const *args, Py_ssize_t static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { &_Py_ID(co_lnotab), }, }; #undef NUM_KEYWORDS @@ -3912,7 +3952,7 @@ exit: static PyObject * test_keyword_only_parameter_impl(PyObject *module, PyBytesObject *co_lnotab) -/*[clinic end generated code: output=18b5b3c80412bc4a input=303df5046c7e37a3]*/ +/*[clinic end generated code: output=bcad654ee66b0972 input=303df5046c7e37a3]*/ /*[clinic input] @@ -4266,9 +4306,11 @@ test_vararg(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('a'), }, }; #undef NUM_KEYWORDS @@ -4313,7 +4355,7 @@ exit: static PyObject * test_vararg_impl(PyObject *module, PyObject *a, PyObject *args) -/*[clinic end generated code: output=5fa7dc68243a5211 input=7448995636d9186a]*/ +/*[clinic end generated code: output=17ba625cdd0369c1 input=7448995636d9186a]*/ /*[clinic input] test_vararg_with_default @@ -4347,9 +4389,11 @@ test_vararg_with_default(PyObject *module, PyObject *const *args, Py_ssize_t nar static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('a'), _Py_LATIN1_CHR('b'), }, }; #undef NUM_KEYWORDS @@ -4405,7 +4449,7 @@ exit: static PyObject * test_vararg_with_default_impl(PyObject *module, PyObject *a, PyObject *args, int b) -/*[clinic end generated code: output=603ae52bfa307337 input=3a0f9f557ce1f712]*/ +/*[clinic end generated code: output=3f2b06ab08d5d0be input=3a0f9f557ce1f712]*/ /*[clinic input] test_vararg_with_only_defaults @@ -4439,9 +4483,11 @@ test_vararg_with_only_defaults(PyObject *module, PyObject *const *args, Py_ssize static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), }, }; #undef NUM_KEYWORDS @@ -4500,7 +4546,7 @@ exit: static PyObject * test_vararg_with_only_defaults_impl(PyObject *module, PyObject *args, int b, PyObject *c) -/*[clinic end generated code: output=195fe286176f4ee8 input=6983e66817f82924]*/ +/*[clinic end generated code: output=f46666f0b1bf86b9 input=6983e66817f82924]*/ /*[clinic input] test_paramname_module @@ -4529,9 +4575,11 @@ test_paramname_module(PyObject *module, PyObject *const *args, Py_ssize_t nargs, static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { &_Py_ID(module), }, }; #undef NUM_KEYWORDS @@ -4565,7 +4613,7 @@ exit: static PyObject * test_paramname_module_impl(PyObject *module, PyObject *mod) -/*[clinic end generated code: output=7ab63a2adaea2873 input=afefe259667f13ba]*/ +/*[clinic end generated code: output=b979bb1c03b16911 input=afefe259667f13ba]*/ /*[clinic input] mangle1 @@ -4607,9 +4655,11 @@ mangle1(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwn static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { &_Py_ID(args), &_Py_ID(kwnames), &_Py_ID(return_value), &_Py_ID(_keywords), &_Py_ID(_parser), &_Py_ID(argsbuf), &_Py_ID(fastargs), &_Py_ID(nargs), &_Py_ID(noptargs), }, }; #undef NUM_KEYWORDS @@ -4662,7 +4712,7 @@ mangle1_impl(PyObject *module, PyObject *args, PyObject *kwnames, PyObject *return_value, PyObject *_keywords, PyObject *_parser, PyObject *argsbuf, PyObject *fastargs, PyObject *nargs, PyObject *noptargs) -/*[clinic end generated code: output=f9127cea2f508da3 input=a3ed51bdedf8a3c7]*/ +/*[clinic end generated code: output=8993a3111845dfc3 input=a3ed51bdedf8a3c7]*/ /*[clinic input] mangle2 @@ -4695,9 +4745,11 @@ mangle2(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwn static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { &_Py_ID(args), &_Py_ID(kwargs), &_Py_ID(return_value), }, }; #undef NUM_KEYWORDS @@ -4736,7 +4788,7 @@ exit: static PyObject * mangle2_impl(PyObject *module, PyObject *args, PyObject *kwargs, PyObject *return_value) -/*[clinic end generated code: output=3afbc3260971e5d3 input=391766fee51bad7a]*/ +/*[clinic end generated code: output=bbbe696e52e0267f input=391766fee51bad7a]*/ /*[clinic input] @@ -4767,9 +4819,11 @@ Test_cls_with_param(PyObject *self, PyTypeObject *cls, PyObject *const *args, Py static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('a'), }, }; #undef NUM_KEYWORDS @@ -4806,7 +4860,7 @@ exit: static PyObject * Test_cls_with_param_impl(TestObj *self, PyTypeObject *cls, int a) -/*[clinic end generated code: output=7e893134a81fef92 input=af158077bd237ef9]*/ +/*[clinic end generated code: output=bd3883003f57d02b input=af158077bd237ef9]*/ /*[clinic input] @@ -5177,9 +5231,11 @@ Test___init__(PyObject *self, PyObject *args, PyObject *kwargs) static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('a'), }, }; #undef NUM_KEYWORDS @@ -5215,7 +5271,7 @@ exit: static int Test___init___impl(TestObj *self, PyObject *a) -/*[clinic end generated code: output=aa1f3d73e611e438 input=a8f9222a6ab35c59]*/ +/*[clinic end generated code: output=5c1e743f6a2a0b8b input=a8f9222a6ab35c59]*/ /*[clinic input] @@ -5511,9 +5567,11 @@ mangled_c_keyword_identifier(PyObject *module, PyObject *const *args, Py_ssize_t static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('i'), }, }; #undef NUM_KEYWORDS @@ -5550,7 +5608,7 @@ exit: static PyObject * mangled_c_keyword_identifier_impl(PyObject *module, int int_value) -/*[clinic end generated code: output=19ec1a02f0819cf7 input=060876448ab567a2]*/ +/*[clinic end generated code: output=49365b3b96b23980 input=060876448ab567a2]*/ /*[clinic input] @@ -5770,9 +5828,11 @@ fn_with_default_binop_expr(PyObject *module, PyObject *const *args, Py_ssize_t n static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { &_Py_ID(arg), }, }; #undef NUM_KEYWORDS @@ -5811,7 +5871,7 @@ exit: static PyObject * fn_with_default_binop_expr_impl(PyObject *module, PyObject *arg) -/*[clinic end generated code: output=e15a6f5d9f7bea0c input=1b55c8ae68d89453]*/ +/*[clinic end generated code: output=6613a7a96537bcf2 input=1b55c8ae68d89453]*/ /*[python input] @@ -5860,9 +5920,11 @@ docstr_fallback_to_converter_default(PyObject *module, PyObject *const *args, Py static struct { PyGC_Head _this_is_not_used; PyObject_VAR_HEAD + Py_hash_t ob_hash; PyObject *ob_item[NUM_KEYWORDS]; } _kwtuple = { .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, .ob_item = { _Py_LATIN1_CHR('a'), }, }; #undef NUM_KEYWORDS @@ -5898,7 +5960,7 @@ exit: static PyObject * docstr_fallback_to_converter_default_impl(PyObject *module, str a) -/*[clinic end generated code: output=15bc9f32945ed0da input=0cbe6a4d24bc2274]*/ +/*[clinic end generated code: output=4405b7050a5f6fb9 input=0cbe6a4d24bc2274]*/ /*[clinic input] diff --git a/Lib/test/test_clinic.py b/Lib/test/test_clinic.py index b45b9ee..199050d 100644 --- a/Lib/test/test_clinic.py +++ b/Lib/test/test_clinic.py @@ -2713,7 +2713,7 @@ class ClinicExternalTest(TestCase): # Verify by checking the checksum. checksum = ( "/*[clinic end generated code: " - "output=00512eb783a9b748 input=9543a8d2da235301]*/\n" + "output=a2957bc4d43a3c2f input=9543a8d2da235301]*/\n" ) with open(fn, encoding='utf-8') as f: generated = f.read() diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index b1d63c5..c64a80d 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -1655,7 +1655,7 @@ class SizeofTest(unittest.TestCase): # float check(float(0), size('d')) # sys.floatinfo - check(sys.float_info, vsize('') + self.P * len(sys.float_info)) + check(sys.float_info, self.P + vsize('') + self.P * len(sys.float_info)) # frame def func(): return sys._getframe() @@ -1763,8 +1763,8 @@ class SizeofTest(unittest.TestCase): # super check(super(int), size('3P')) # tuple - check((), vsize('')) - check((1,2,3), vsize('') + 3*self.P) + check((), vsize('') + self.P) + check((1,2,3), vsize('') + self.P + 3*self.P) # type # static type: PyTypeObject fmt = 'P2nPI13Pl4Pn9Pn12PIPc' @@ -1886,7 +1886,7 @@ class SizeofTest(unittest.TestCase): # XXX # sys.flags # FIXME: The +1 will not be necessary once gh-122575 is fixed - check(sys.flags, vsize('') + self.P * (1 + len(sys.flags))) + check(sys.flags, vsize('') + self.P + self.P * (1 + len(sys.flags))) def test_asyncgen_hooks(self): old = sys.get_asyncgen_hooks() |