Ticket #5080 defect new
refleak in twisted.test.test_pb.BrokerTestCase.test_publishable
| Reported by: | catlee | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Keywords: | |
| Cc: | Branch: | ||
| Author: | Launchpad Bug: |
Description (last modified by thijs) (diff)
As demonstrated in this patch, test_publishable leaks [<twisted.test.test_pb.DumbPub instance at 0x2111200>, <twisted.spread.pb.RemoteReference instance at 0x21115f0>] when run. Possibly an indication of an underlying reference leak?
-
twisted/test/test_pb.py
723 723 self.assertIdentical(vcc.observer, None, "observer was not removed") 724 724 725 725 def test_publishable(self): 726 gc.collect() 727 old_garbage = len(gc.garbage) 726 728 try: 727 729 os.unlink('None-None-TESTING.pub') # from RemotePublished.getFileName 728 730 except OSError: … … 750 752 # timestamp's clean, our cache file is up-to-date 751 753 self.assertEquals(obj._wasCleanWhenLoaded, 1) 752 754 755 gc.collect() 756 self.assertEquals(len(gc.garbage), old_garbage, "Uncollectable garbage: %s" % gc.garbage) 757 753 758 def gotCopy(self, val): 754 759 self.thunkResult = val.id 755 760
Change History
Note: See
TracTickets for help on using
tickets.
