[pypy-commit] pypy ootype-rerased: Fix tests to remove redundancy.
ademan
noreply at buildbot.pypy.org
Sat Jul 23 13:21:30 CEST 2011
Author: Daniel Roberts <Ademan555 at gmail.com>
Branch: ootype-rerased
Changeset: r45898:864d55a90e7e
Date: 2011-07-23 04:21 -0700
http://bitbucket.org/pypy/pypy/changeset/864d55a90e7e/
Log: Fix tests to remove redundancy.
diff --git a/pypy/translator/cli/test/test_int.py b/pypy/translator/cli/test/test_int.py
--- a/pypy/translator/cli/test/test_int.py
+++ b/pypy/translator/cli/test/test_int.py
@@ -1,8 +1,8 @@
import py
from pypy.translator.cli.test.runtest import CliTest
-from pypy.rpython.test.test_rint import BaseTestRint
+from pypy.rpython.test.test_rint import TestOOtype as _TestOOtype # so py.test won't run the base test
-class TestCliInt(CliTest, BaseTestRint):
+class TestCliInt(CliTest, _TestOOtype):
def test_char_constant(self):
def dummyfn(i):
return chr(i)
diff --git a/pypy/translator/jvm/test/test_int.py b/pypy/translator/jvm/test/test_int.py
--- a/pypy/translator/jvm/test/test_int.py
+++ b/pypy/translator/jvm/test/test_int.py
@@ -1,10 +1,11 @@
import py
from pypy.translator.jvm.test.runtest import JvmTest
from pypy.rpython.test.test_rint import BaseTestRint
+from pypy.rpython.test.test_rint import TestOOtype as _TestOOtype # so py.test won't run the base test
# ====> ../../../rpython/test/test_rint.py
-class TestJvmInt(JvmTest, BaseTestRint):
+class TestJvmInt(JvmTest, _TestOOtype):
def test_char_constant(self):
def dummyfn(i):
return chr(i)
diff --git a/pypy/translator/oosupport/test_template/operations.py b/pypy/translator/oosupport/test_template/operations.py
--- a/pypy/translator/oosupport/test_template/operations.py
+++ b/pypy/translator/oosupport/test_template/operations.py
@@ -207,13 +207,6 @@
return bool(x)
self._check_all(fn)
- def test_box(self):
- def f():
- x = 42
- y = llop.oobox_int(ootype.Object, x)
- return llop.oounbox_int(lltype.Signed, y)
- assert self.interpret(f, []) == 42
-
def test_ullong_rshift(self):
def f(x):
return x >> 1
More information about the pypy-commit
mailing list