[pypy-commit] pypy fast_cffi_list_init: fix these test with -A
antocuni
noreply at buildbot.pypy.org
Fri Oct 11 15:02:39 CEST 2013
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: fast_cffi_list_init
Changeset: r67314:0654986f3d75
Date: 2013-10-11 14:56 +0200
http://bitbucket.org/pypy/pypy/changeset/0654986f3d75/
Log: fix these test with -A
diff --git a/pypy/module/_cffi_backend/test/test_extra.py b/pypy/module/_cffi_backend/test/test_extra.py
--- a/pypy/module/_cffi_backend/test/test_extra.py
+++ b/pypy/module/_cffi_backend/test/test_extra.py
@@ -53,6 +53,8 @@
return original(*args)
self._original = original
rarray.populate_list_from_raw_array = populate_list_from_raw_array
+ #
+ self.w_runappdirect = self.space.wrap(self.runappdirect)
def teardown_method(self, meth):
@@ -70,7 +72,8 @@
buf[2] = 3
lst = list(buf)
assert lst == [1, 2, 3]
- assert self.get_count() == 1
+ if not self.runappdirect:
+ assert self.get_count() == 1
def test_list_float(self):
import _cffi_backend
@@ -83,4 +86,5 @@
buf[2] = 3.3
lst = list(buf)
assert lst == [1.1, 2.2, 3.3]
- assert self.get_count() == 1
+ if not self.runappdirect:
+ assert self.get_count() == 1
More information about the pypy-commit
mailing list