Author: Ronan Lamy <ronan.l...@gmail.com>
Branch: testing-cleanup-py3k
Changeset: r85308:5c1da7baf37a
Date: 2016-06-21 03:35 +0100
http://bitbucket.org/pypy/pypy/changeset/5c1da7baf37a/

Log:    fix warnings

diff --git a/pypy/module/cpyext/test/test_bytesobject.py 
b/pypy/module/cpyext/test/test_bytesobject.py
--- a/pypy/module/cpyext/test/test_bytesobject.py
+++ b/pypy/module/cpyext/test/test_bytesobject.py
@@ -49,7 +49,7 @@
             ("test_Size_exception", "METH_NOARGS",
              """
                  PyObject* f = PyFloat_FromDouble(1.0);
-                 Py_ssize_t size = PyBytes_Size(f);
+                 PyBytes_Size(f);
 
                  Py_DECREF(f);
                  return NULL;
diff --git a/pypy/module/cpyext/test/test_memoryobject.py 
b/pypy/module/cpyext/test/test_memoryobject.py
--- a/pypy/module/cpyext/test/test_memoryobject.py
+++ b/pypy/module/cpyext/test/test_memoryobject.py
@@ -20,8 +20,6 @@
                  """
                  Py_buffer buf;
                  PyObject *str = PyBytes_FromString("hello, world.");
-                 PyObject *result;
-
                  if (PyBuffer_FillInfo(&buf, str, PyBytes_AsString(str), 13,
                                        0, 0)) {
                      return NULL;
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to