mirror of
https://github.com/python/cpython.git
synced 2026-03-04 12:01:00 +00:00
bpo-34087: Backport tests for int/float/complex (GH-8274)
Cherrypick tests from 16dfca4d82
While the regression is not in 3.6, it's worth to backport test cases
to 3.6 branch too.
This commit is contained in:
parent
083a836937
commit
b2f8aa0c99
4 changed files with 12 additions and 0 deletions
|
|
@ -391,6 +391,8 @@ _Py_string_to_number_with_underscores(
|
|||
char *dup, *end;
|
||||
PyObject *result;
|
||||
|
||||
assert(s[orig_len] == '\0');
|
||||
|
||||
if (strchr(s, '_') == NULL) {
|
||||
return innerfunc(s, orig_len, arg);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue