import weakref
import unittest
import vapoursynth as vs


class FilterTestSequence(unittest.TestCase):

    def setUp(self):
        self.core = vs.core

    def test_weakref_core(self):
        ref = weakref.ref(self.core)
        self.assertTrue(ref() is self.core)

    def test_weakref_node(self):
        video = self.core.std.BlankClip()
        ref = weakref.ref(video)
        self.assertTrue(ref() is video)

    def test_weakref_frame(self):
        video = self.core.std.BlankClip()
        frame = video.get_frame(0)
        ref = weakref.ref(frame)
        self.assertTrue(ref() is frame)

if __name__ == '__main__':
    unittest.main()

@@ -172,16 +172,21 @@
 ref_core
+proxy
 (self):%0A
@@ -197,30 +197,153 @@
     
-ref = weakref.ref(self
+with self.assertRaises(TypeError):%0A            ref = weakref.ref(self.core)%0A%0A    def test_weakref_core(self):%0A        ref = weakref.ref(self.core
 .cor
@@ -379,32 +379,37 @@
 f() is self.core
+.core
 )%0A%0A    def test_

Fix weakref test