[pypy-commit] pypy issue-2592: a failing test, pop returns None

mattip pypy.commits at gmail.com
Thu Jun 22 16:24:42 EDT 2017


Author: Matti Picus <matti.picus at gmail.com>
Branch: issue-2592
Changeset: r91631:b0ff2ae9c4b3
Date: 2017-06-22 23:01 +0300
http://bitbucket.org/pypy/pypy/changeset/b0ff2ae9c4b3/

Log:	a failing test, pop returns None

diff --git a/pypy/module/cpyext/test/test_listobject.py b/pypy/module/cpyext/test/test_listobject.py
--- a/pypy/module/cpyext/test/test_listobject.py
+++ b/pypy/module/cpyext/test/test_listobject.py
@@ -151,6 +151,11 @@
         # tp_as_sequence should be filled, but tp_as_number should be NULL
         assert module.test_tp_as_() == 3
 
+        l = module.newlist()
+        p = l.pop()
+        assert p == 1000
+        assert l == [3, -5]
+
     def test_list_macros(self):
         """The PyList_* macros cast, and calls expecting that build."""
         module = self.import_extension('foo', [


More information about the pypy-commit mailing list