Commit 7146ad74 authored by Ronan Lamy's avatar Ronan Lamy
Browse files

kill unnecessary setup_class()

parent b07206b29e69
......@@ -327,11 +327,6 @@ class AppTestFunction:
raises(ValueError, type(f).__setstate__, f, (1, 2, 3))
class AppTestMethod:
def setup_class(cls):
cls.w_runappdirect_on_cpython =
cls.runappdirect and
'__pypy__' not in sys.builtin_module_names)
def test_simple_call(self):
class A(object):
def func(self, arg2):
......@@ -565,6 +560,7 @@ class AppTestMethod:
assert meth == MethodType(func, object)
def test_method_identity(self):
import sys
class A(object):
def m(self):
......@@ -589,7 +585,7 @@ class AppTestMethod:
assert x is not a2.m
assert id(x) != id(a2.m)
if not self.runappdirect_on_cpython:
if '__pypy__' in sys.builtin_module_names:
assert A.m is A.m
assert id(A.m) == id(A.m)
assert A.m == A.m
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment