Issue19995: fixed typo; switched from test.support.check_warnings to assertWarns

This commit is contained in:
Ethan Furman 2014-01-12 08:42:35 -08:00
parent 61dab6e3fa
commit a70805e1fa
2 changed files with 7 additions and 17 deletions

View file

@ -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) {