[pypy-commit] pypy cpyext-gc-support-2: kill test, borrowing as such no longer exists

arigo pypy.commits at gmail.com
Sat Feb 13 11:22:22 EST 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: cpyext-gc-support-2
Changeset: r82223:ecb4ebcdb9e4
Date: 2016-02-13 16:59 +0100
http://bitbucket.org/pypy/pypy/changeset/ecb4ebcdb9e4/

Log:	kill test, borrowing as such no longer exists

diff --git a/pypy/module/cpyext/test/test_borrow.py b/pypy/module/cpyext/test/test_borrow.py
--- a/pypy/module/cpyext/test/test_borrow.py
+++ b/pypy/module/cpyext/test/test_borrow.py
@@ -4,17 +4,6 @@
 from pypy.module.cpyext.pyobject import make_ref, borrow_from, RefcountState
 
 
-class TestBorrowing(BaseApiTest):
-    def test_borrowing(self, space, api):
-        w_int = space.wrap(1)
-        w_tuple = space.newtuple([w_int])
-        api.Py_IncRef(w_tuple)
-        one_pyo = borrow_from(w_tuple, w_int).get_ref(space)
-        api.Py_DecRef(w_tuple)
-        state = space.fromcache(RefcountState)
-        state.print_refcounts()
-        py.test.raises(AssertionError, api.Py_DecRef, one_pyo)
-
 class AppTestBorrow(AppTestCpythonExtensionBase):
     def test_tuple_borrowing(self):
         module = self.import_extension('foo', [


More information about the pypy-commit mailing list