Author: Alex Gaynor <alex.gay...@gmail.com>
Branch: kill-someobject
Changeset: r57820:a12d86d5ef94
Date: 2012-10-07 16:51 +0200
http://bitbucket.org/pypy/pypy/changeset/a12d86d5ef94/

Log:    (arigato, alex) kill a test of an implementation detail

diff --git a/pypy/annotation/model.py b/pypy/annotation/model.py
--- a/pypy/annotation/model.py
+++ b/pypy/annotation/model.py
@@ -116,10 +116,11 @@
 
     def can_be_none(self):
         return True
-        
+
     def nonnoneify(self):
         return self
 
+
 class SomeType(SomeObject):
     "Stands for a type.  We might not be sure which one it is."
     knowntype = type
diff --git a/pypy/rpython/test/test_exception.py 
b/pypy/rpython/test/test_exception.py
--- a/pypy/rpython/test/test_exception.py
+++ b/pypy/rpython/test/test_exception.py
@@ -3,7 +3,7 @@
 from pypy.rpython.lltypesystem.lltype import *
 from pypy.rpython.test.tool import BaseRtypingTest, LLRtypeMixin, OORtypeMixin
 from pypy.rpython.llinterp import LLException
-from pypy.rpython.error import MissingRTypeOperation 
+from pypy.rpython.error import MissingRTypeOperation
 
 class MyException(Exception):
     pass
@@ -32,31 +32,6 @@
     rtype(dummyfn)
 
 
-
-def test_exception_data():
-    def f(n):
-        raise OverflowError()
-
-    t = rtype(f, [int])
-
-    excdata = t.rtyper.getexceptiondata()
-    getcdef = t.annotator.bookkeeper.getuniqueclassdef
-
-    #t.view()
-    ovferr_inst = excdata.fn_pyexcclass2exc(pyobjectptr(OverflowError))
-    classdef = getcdef(OverflowError)
-    assert ovferr_inst.typeptr == t.rtyper.class_reprs[classdef].getvtable()
-
-    taberr_inst = excdata.fn_pyexcclass2exc(pyobjectptr(TabError))
-    classdef = getcdef(StandardError) # most precise class seen
-    assert taberr_inst.typeptr == t.rtyper.class_reprs[classdef].getvtable()
-
-    myerr_inst = excdata.fn_pyexcclass2exc(pyobjectptr(MyException))
-    assert myerr_inst.typeptr == t.rtyper.class_reprs[None].getvtable()
-
-    strgerr_inst = excdata.fn_pyexcclass2exc(pyobjectptr(MyStrangeException))
-    assert strgerr_inst.typeptr == t.rtyper.class_reprs[None].getvtable()
-
 class BaseTestException(BaseRtypingTest):
     def test_exception_with_arg(self):
         def g(n):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to