1. Pypy
  2. Untitled project
  3. pypy

Commits

Ronan Lamy  committed d3bc5f2

kill dead test code

  • Participants
  • Parent commits 42e96df
  • Branches annotator

Comments (0)

Files changed (3)

File rpython/rtyper/test/test_rbool.py

View file
 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
 
     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):
 

File rpython/rtyper/test/test_rfloat.py

View file
-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):
     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):
 
         big = float(0x7fffffffffffffff)
         x = big - 1.e10
         assert x != big
-        y = fn(x)
         assert fn(x) == 9223372026854775808
 
     def test_to_r_uint(self):

File rpython/rtyper/test/test_rint.py

View file
 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
     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):