[pypy-commit] pypy annotator: kill dead test code
rlamy
noreply at buildbot.pypy.org
Sat Dec 14 12:47:49 CET 2013
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: annotator
Changeset: r68433:d3bc5f261805
Date: 2013-12-14 01:44 +0100
http://bitbucket.org/pypy/pypy/changeset/d3bc5f261805/
Log: kill dead test code
diff --git a/rpython/rtyper/test/test_rbool.py b/rpython/rtyper/test/test_rbool.py
--- a/rpython/rtyper/test/test_rbool.py
+++ b/rpython/rtyper/test/test_rbool.py
@@ -1,5 +1,4 @@
from rpython.translator.translator import TranslationContext
-from rpython.annotator import unaryop, binaryop
from rpython.rtyper.test import snippet
from rpython.rtyper.test.tool import BaseRtypingTest
@@ -23,15 +22,6 @@
def test_bool_cast1(self):
self._test(snippet.bool_cast1, [bool])
- def DONTtest_unary_operations(self):
- # XXX TODO test if all unary operations are implemented
- for opname in unaryop.UNARY_OPERATIONS:
- print 'UNARY_OPERATIONS:', opname
-
- def DONTtest_binary_operations(self):
- # XXX TODO test if all binary operations are implemented
- for opname in binaryop.BINARY_OPERATIONS:
- print 'BINARY_OPERATIONS:', opname
class TestRbool(BaseRtypingTest):
diff --git a/rpython/rtyper/test/test_rfloat.py b/rpython/rtyper/test/test_rfloat.py
--- a/rpython/rtyper/test/test_rfloat.py
+++ b/rpython/rtyper/test/test_rfloat.py
@@ -1,10 +1,9 @@
-import sys, py
+import sys
from rpython.translator.translator import TranslationContext
-from rpython.annotator import unaryop, binaryop
from rpython.rtyper.test import snippet
from rpython.rtyper.test.tool import BaseRtypingTest
from rpython.rlib.rarithmetic import (
- r_int, r_uint, r_longlong, r_ulonglong, r_singlefloat)
+ r_uint, r_longlong, r_ulonglong, r_singlefloat)
from rpython.rlib.objectmodel import compute_hash
class TestSnippet(object):
@@ -27,15 +26,6 @@
def test_float_cast1(self):
self._test(snippet.float_cast1, [float])
- def DONTtest_unary_operations(self):
- # XXX TODO test if all unary operations are implemented
- for opname in unaryop.UNARY_OPERATIONS:
- print 'UNARY_OPERATIONS:', opname
-
- def DONTtest_binary_operations(self):
- # XXX TODO test if all binary operations are implemented
- for opname in binaryop.BINARY_OPERATIONS:
- print 'BINARY_OPERATIONS:', opname
class TestRfloat(BaseRtypingTest):
@@ -93,7 +83,6 @@
big = float(0x7fffffffffffffff)
x = big - 1.e10
assert x != big
- y = fn(x)
assert fn(x) == 9223372026854775808
def test_to_r_uint(self):
diff --git a/rpython/rtyper/test/test_rint.py b/rpython/rtyper/test/test_rint.py
--- a/rpython/rtyper/test/test_rint.py
+++ b/rpython/rtyper/test/test_rint.py
@@ -1,7 +1,6 @@
import py
import sys, operator
from rpython.translator.translator import TranslationContext
-from rpython.annotator import unaryop, binaryop
from rpython.rtyper.test import snippet
from rpython.rlib.rarithmetic import r_int, r_uint, r_longlong, r_ulonglong
from rpython.rlib.rarithmetic import ovfcheck, r_int64, intmask, int_between
@@ -29,16 +28,6 @@
def test_int_cast1(self):
self._test(snippet.int_cast1, [int])
- def DONTtest_unary_operations(self):
- # XXX TODO test if all unary operations are implemented
- for opname in unaryop.UNARY_OPERATIONS:
- print 'UNARY_OPERATIONS:', opname
-
- def DONTtest_binary_operations(self):
- # XXX TODO test if all binary operations are implemented
- for opname in binaryop.BINARY_OPERATIONS:
- print 'BINARY_OPERATIONS:', opname
-
class TestRint(BaseRtypingTest):
More information about the pypy-commit
mailing list