Author: Matti Picus <matti.pi...@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', [
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to