def tearDown(self): self.pipeline.setState(STATE_NULL) self.pipeline.release() self.monitor.disconnectFromObj(self.pipeline) del self.pipeline del self.monitor TestCase.tearDown(self)
def tearDown(self): gst.info("tearDown") self.assertTrue(self.pipeline.__gstrefcount__ >= 1 and self.pipeline.__gstrefcount__ <= 2) self.assertEquals(sys.getrefcount(self.pipeline), pygobject_2_13 and 2 or 3) self.assertEquals(self.src.__gstrefcount__, 2) self.assertEquals(sys.getrefcount(self.src), pygobject_2_13 and 2 or 3) self.assertEquals(self.sink.__gstrefcount__, 2) self.assertEquals(sys.getrefcount(self.sink), 3) gst.debug('deleting pipeline') del self.pipeline self.gccollect() self.assertEquals(self.src.__gstrefcount__, 1) # parent gone self.assertEquals(self.sink.__gstrefcount__, 1) # parent gone self.assertEquals(sys.getrefcount(self.src), pygobject_2_13 and 2 or 3) self.assertEquals(sys.getrefcount(self.sink), pygobject_2_13 and 2 or 3) gst.debug('deleting src') del self.src self.gccollect() gst.debug('deleting sink') del self.sink self.gccollect() TestCase.tearDown(self)
def tearDown(self): # FIXME: wait for state change thread to settle down while self.bin.__gstrefcount__ > 1: time.sleep(0.1) self.assertEquals(self.bin.__gstrefcount__, 1) del self.bin TestCase.tearDown(self)
def tearDown(self): # Refcount must be either 1 or 2, to allow for a possibly still running # state-recalculation thread self.assertTrue(self.pipeline.__gstrefcount__ >= 1 and self.pipeline.__gstrefcount__ <= 2) self.assertEquals(sys.getrefcount(self.pipeline), pygobject_2_13 and 2 or 3) self.assertEquals(self.fakesrc.__gstrefcount__, 2) self.assertEquals(sys.getrefcount(self.fakesrc), pygobject_2_13 and 2 or 3) gst.debug('deleting pipeline') del self.pipeline self.gccollect() self.assertEquals(self.fakesrc.__gstrefcount__, 1) # parent gone self.assertEquals(self.fakesink.__gstrefcount__, 1) # parent gone self.assertEquals(sys.getrefcount(self.fakesrc), pygobject_2_13 and 2 or 3) self.assertEquals(sys.getrefcount(self.fakesink), pygobject_2_13 and 2 or 3) gst.debug('deleting fakesrc') del self.fakesrc self.gccollect() gst.debug('deleting fakesink') del self.fakesink self.gccollect() TestCase.tearDown(self)
def tearDown(self): self.assertEquals(sys.getrefcount(self.src), pygobject_2_13 and 2 or 3) self.assertEquals(self.src.__gstrefcount__, 1) del self.src self.assertEquals(sys.getrefcount(self.sink), pygobject_2_13 and 2 or 3) self.assertEquals(self.sink.__gstrefcount__, 1) del self.sink TestCase.tearDown(self)
def tearDown(self): self.discoverer.disconnect_by_function(self.discoveryErrorCb) self.discoverer.disconnect_by_function(self.discoveryDoneCb) self.discoverer = None self.factories = None self.error = None self.src = None TestCase.tearDown(self)
def tearDown(self): self.pipeline.set_state(gst.STATE_NULL) self.sink.disconnect(self.sigid) if os.path.exists(self.filename): os.remove(self.filename) del self.bus del self.pipeline del self.source del self.sink del self.handoffs TestCase.tearDown(self)
def tearDown(self): gst.debug('setting pipeline to NULL') self.pipeline.set_state(gst.STATE_NULL) gst.debug('set pipeline to NULL') # FIXME: wait for state change thread to die while self.pipeline.__gstrefcount__ > 1: gst.debug('waiting for self.pipeline G rc to drop to 1') time.sleep(0.1) self.assertEquals(self.pipeline.__gstrefcount__, 1) del self.sink del self.pipeline TestCase.tearDown(self)
def tearDown(self): # Refcount must be either 1 or 2, to allow for a possibly still running # state-recalculation thread self.assertTrue (self.pipeline.__gstrefcount__ >= 1 and self.pipeline.__gstrefcount__ <= 2) self.assertEquals(sys.getrefcount(self.pipeline), pygobject_2_13 and 2 or 3) self.assertEquals(self.fakesrc.__gstrefcount__, 2) self.assertEquals(sys.getrefcount(self.fakesrc), pygobject_2_13 and 2 or 3) gst.debug('deleting pipeline') del self.pipeline self.gccollect() self.assertEquals(self.fakesrc.__gstrefcount__, 1) # parent gone self.assertEquals(self.fakesink.__gstrefcount__, 1) # parent gone self.assertEquals(sys.getrefcount(self.fakesrc), pygobject_2_13 and 2 or 3) self.assertEquals(sys.getrefcount(self.fakesink), pygobject_2_13 and 2 or 3) gst.debug('deleting fakesrc') del self.fakesrc self.gccollect() gst.debug('deleting fakesink') del self.fakesink self.gccollect() TestCase.tearDown(self)
def tearDown(self): gst.info("tearDown") self.assertTrue (self.pipeline.__gstrefcount__ >= 1 and self.pipeline.__gstrefcount__ <= 2) self.assertEquals(sys.getrefcount(self.pipeline), pygobject_2_13 and 2 or 3) self.assertEquals(self.src.__gstrefcount__, 2) self.assertEquals(sys.getrefcount(self.src), pygobject_2_13 and 2 or 3) self.assertEquals(self.sink.__gstrefcount__, 2) self.assertEquals(sys.getrefcount(self.sink), 3) gst.debug('deleting pipeline') del self.pipeline self.gccollect() self.assertEquals(self.src.__gstrefcount__, 1) # parent gone self.assertEquals(self.sink.__gstrefcount__, 1) # parent gone self.assertEquals(sys.getrefcount(self.src), pygobject_2_13 and 2 or 3) self.assertEquals(sys.getrefcount(self.sink), pygobject_2_13 and 2 or 3) gst.debug('deleting src') del self.src self.gccollect() gst.debug('deleting sink') del self.sink self.gccollect() TestCase.tearDown(self)
def tearDown(self): self.monitor = None self.track_object.release() self.track_oject = None self.factory = None TestCase.tearDown(self)
def tearDown(self): del self.mixer TestCase.tearDown(self)
def tearDown(self): self.adapter = None TestCase.tearDown(self)
def tearDown(self): self.factory = None self.stream = None self.track1 = None self.track2 = None TestCase.tearDown(self)
def tearDown(self): del self.bin TestCase.tearDown(self)
def tearDown(self): del self.pipeline del self.srcpad TestCase.tearDown(self)
def tearDown(self): del self.pipeline del self.element TestCase.tearDown(self)
def tearDown(self): self.discoverer = None TestCase.tearDown(self)
def tearDown(self): self.factory = None TestCase.tearDown(self)
def tearDown(self): self.stream = None self.factory = None self.monitor = None TestCase.tearDown(self)
def tearDown(self): del self.factory TestCase.tearDown(self)
def tearDown(self): self.audiosettings = None self.videosettings = None TestCase.tearDown(self)