Author: Armin Rigo <[email protected]>
Branch: reverse-debugger
Changeset: r85407:a6b2f857e5c0
Date: 2016-06-27 18:18 +0200
http://bitbucket.org/pypy/pypy/changeset/a6b2f857e5c0/

Log:    Test fixes

diff --git a/rpython/translator/revdb/src-revdb/revdb.c 
b/rpython/translator/revdb/src-revdb/revdb.c
--- a/rpython/translator/revdb/src-revdb/revdb.c
+++ b/rpython/translator/revdb/src-revdb/revdb.c
@@ -186,14 +186,6 @@
     }
 }
 
-/*
-RPY_EXTERN
-void rpy_reverse_db_register_finalizer(void *obj, void (*finalizer)(void *))
-{
-    ...;
-}
-*/
-
 void boehm_gc_finalizer_notifier(void)
 {
     /* This is called by Boehm when there are pending finalizers.
diff --git a/rpython/translator/revdb/test/test_weak.py 
b/rpython/translator/revdb/test/test_weak.py
--- a/rpython/translator/revdb/test/test_weak.py
+++ b/rpython/translator/revdb/test/test_weak.py
@@ -152,6 +152,9 @@
         assert rdb.done()
 
     def test_finalizer_light_ignored(self):
+        py.test.skip("lightweight finalizers could be skipped, but that "
+                     "requires also skipping (instead of recording) any "
+                     "external call they do")
         class X:
             @rgc.must_be_light_finalizer
             def __del__(self):
@@ -182,6 +185,7 @@
             if rdb.is_special_packet():
                 time, = rdb.special_packet(ASYNC_FINALIZER_TRIGGER, 'q')
                 assert time == i + 1
+                y = intmask(rdb.next('q')); assert y == -1
                 triggered = True
             j = rdb.next()
             assert j == i + 1000000 * triggered
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to