mirror of
https://github.com/python/cpython.git
synced 2025-07-17 08:15:19 +00:00
Issue19995: fixed typo; switched from test.support.check_warnings to assertWarns
This commit is contained in:
parent
61dab6e3fa
commit
a70805e1fa
2 changed files with 7 additions and 17 deletions
|
@ -14005,7 +14005,7 @@ mainformatlong(PyObject *v,
|
|||
goto wrongtype;
|
||||
|
||||
/* make sure number is a type of integer */
|
||||
/* if not, issue depracation warning for now */
|
||||
/* if not, issue deprecation warning for now */
|
||||
if (!PyLong_Check(v)) {
|
||||
if (type == 'o' || type == 'x' || type == 'X') {
|
||||
iobj = PyNumber_Index(v);
|
||||
|
@ -14103,7 +14103,7 @@ formatchar(PyObject *v)
|
|||
PyObject *iobj;
|
||||
long x;
|
||||
/* make sure number is a type of integer */
|
||||
/* if not, issue depracation warning for now */
|
||||
/* if not, issue deprecation warning for now */
|
||||
if (!PyLong_Check(v)) {
|
||||
iobj = PyNumber_Index(v);
|
||||
if (iobj == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue