[pypy-commit] pypy default: Fix test
arigo
pypy.commits at gmail.com
Sat Feb 16 09:18:30 EST 2019
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r96027:7fad2f4ca232
Date: 2019-02-16 14:30 +0100
http://bitbucket.org/pypy/pypy/changeset/7fad2f4ca232/
Log: Fix test
diff --git a/pypy/module/cpyext/test/test_sequence.py b/pypy/module/cpyext/test/test_sequence.py
--- a/pypy/module/cpyext/test/test_sequence.py
+++ b/pypy/module/cpyext/test/test_sequence.py
@@ -5,7 +5,7 @@
from pypy.module.cpyext.sequence import (
PySequence_Fast, PySequence_Contains, PySequence_Index,
PySequence_GetItem, PySequence_SetItem, PySequence_DelItem)
-from pypy.module.cpyext.pyobject import get_w_obj_and_decref
+from pypy.module.cpyext.pyobject import get_w_obj_and_decref, from_ref
from pypy.module.cpyext.state import State
import pytest
@@ -22,7 +22,7 @@
assert api.PySequence_Fast(w_l, "message") is w_l
py_result = api.PySequence_Fast_GET_ITEM(w_l, 1)
- w_result = get_w_obj_and_decref(space, py_result)
+ w_result = from_ref(space, py_result)
assert space.int_w(w_result) == 2
assert api.PySequence_Fast_GET_SIZE(w_l) == 4
More information about the pypy-commit
mailing list