Author: Philip Jenvey <pjen...@underboss.org> Branch: Changeset: r63924:b191d9f8333c Date: 2013-05-08 10:23 -0700 http://bitbucket.org/pypy/pypy/changeset/b191d9f8333c/
Log: avoid the platform module at applevel diff --git a/pypy/objspace/std/test/test_listobject.py b/pypy/objspace/std/test/test_listobject.py --- a/pypy/objspace/std/test/test_listobject.py +++ b/pypy/objspace/std/test/test_listobject.py @@ -431,10 +431,12 @@ class AppTestW_ListObject(object): def setup_class(cls): + import platform import sys on_cpython = (cls.runappdirect and not hasattr(sys, 'pypy_translation_info')) cls.w_on_cpython = cls.space.wrap(on_cpython) + cls.w_on_arm = cls.space.wrap(platform.machine().startswith('arm')) cls.w_runappdirect = cls.space.wrap(cls.runappdirect) def test_getstrategyfromlist_w(self): @@ -948,8 +950,7 @@ def test_setitem_slice_performance(self): # because of a complexity bug, this used to take forever on a # translated pypy. On CPython2.6 -A, it takes around 5 seconds. - import platform - if platform.machine().startswith('arm'): + if self.on_arm: skip("consumes too much memory for most ARM machines") if self.runappdirect: count = 16*1024*1024 _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit