1#! /usr/bin/env python 2# -*- coding: utf-8 -*- 3# vi:ts=4:et 4 5import unittest 6import weakref 7import pycurl 8 9class WeakrefTest(unittest.TestCase): 10 def test_easy(self): 11 c = pycurl.Curl() 12 weakref.ref(c) 13 c.close() 14 15 def test_multi(self): 16 m = pycurl.CurlMulti() 17 weakref.ref(m) 18 m.close() 19 20 def test_share(self): 21 s = pycurl.CurlShare() 22 weakref.ref(s) 23 s.close() 24