[pypy-commit] pypy default: woops, wrong class
cfbolz
noreply at buildbot.pypy.org
Fri Nov 4 10:50:29 CET 2011
Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch:
Changeset: r48737:7e5b7f49a9f0
Date: 2011-11-04 10:13 +0100
http://bitbucket.org/pypy/pypy/changeset/7e5b7f49a9f0/
Log: woops, wrong class
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
@@ -2,17 +2,10 @@
from pypy.objspace.std.listobject import W_ListObject
from pypy.interpreter.error import OperationError
-from pypy.conftest import gettestobjspace
+from pypy.conftest import gettestobjspace, option
class TestW_ListObject(object):
- def setup_class(cls):
- import sys
- on_cpython = (option.runappdirect and
- not hasattr(sys, 'pypy_translation_info'))
-
- cls.w_on_cpython = cls.space.wrap(on_cpython)
-
def test_is_true(self):
w = self.space.wrap
w_list = W_ListObject([])
@@ -349,6 +342,13 @@
class AppTestW_ListObject(object):
+ def setup_class(cls):
+ import sys
+ on_cpython = (option.runappdirect and
+ not hasattr(sys, 'pypy_translation_info'))
+
+ cls.w_on_cpython = cls.space.wrap(on_cpython)
+
def test_call_list(self):
assert list('') == []
assert list('abc') == ['a', 'b', 'c']
More information about the pypy-commit
mailing list