[pypy-svn] r49036 - pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/test

cfbolz at codespeak.net cfbolz at codespeak.net
Sat Nov 24 14:34:00 CET 2007


Author: cfbolz
Date: Sat Nov 24 14:34:00 2007
New Revision: 49036

Modified:
   pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/test/test_database.py
Log:
kill these tests that are using now-unsupported features


Modified: pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/test/test_database.py
==============================================================================
--- pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/test/test_database.py	(original)
+++ pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/test/test_database.py	Sat Nov 24 14:34:00 2007
@@ -151,26 +151,6 @@
     db.complete()
     dump_on_stdout(db)
 
-def test_untyped_func():
-    def f(x):
-        return x+1
-    graph = TranslationContext().buildflowgraph(f)
-
-    F = FuncType([Ptr(PyObject)], Ptr(PyObject))
-    f = functionptr(F, "f", graph=graph)
-    db = LowLevelDatabase()
-    db.get(f)
-    db.complete()
-    dump_on_stdout(db)
-
-    S = GcStruct('testing', ('fptr', Ptr(F)))
-    s = malloc(S)
-    s.fptr = f
-    db = LowLevelDatabase()
-    db.get(s)
-    db.complete()
-    dump_on_stdout(db)
-
 # ____________________________________________________________
 
 def makegraph(func, argtypes):
@@ -195,15 +175,6 @@
     db.complete()
     dump_on_stdout(db)
 
-def test_func_as_pyobject():
-    def f(x):
-        return x+1
-    t, graph = makegraph(f, [int])
-
-    db = LowLevelDatabase(t)
-    db.get(pyobjectptr(f))
-    db.complete()
-    dump_on_stdout(db)
 
 def test_malloc():
     S = GcStruct('testing', ('x', Signed), ('y', Signed))
@@ -240,15 +211,6 @@
     db.complete()
     dump_on_stdout(db)
 
-def test_array():
-    A = GcArray(('obj', Ptr(PyObject)))
-    a = malloc(A, 10)
-    a[3].obj = pyobjectptr(5)
-    db = LowLevelDatabase()
-    db.get(a)
-    db.complete()
-    dump_on_stdout(db)
-
 def test_array_of_char():
     A = GcArray(Char)
     a = malloc(A, 11)
@@ -259,15 +221,6 @@
     db.complete()
     dump_on_stdout(db)
 
-def test_array_of_pyobj():
-    A = GcArray(Ptr(PyObject))
-    a = malloc(A, 10)
-    a[3] = pyobjectptr(5)
-    db = LowLevelDatabase()
-    db.get(a)
-    db.complete()
-    dump_on_stdout(db)
-
 def test_recursive_struct():
     S = GcForwardReference()
     S.become(GcStruct('testing', ('p', Ptr(S))))



More information about the Pypy-commit mailing list