Comment 3 for bug 193253

Revision history for this message
Stuart Bishop (stub) wrote : Re: sockets being leaked in codehosting tests

We still have socket leaks. I still can't land my prophylactic:

(canonical.codehosting.tests.test_puller_acceptance.TestBranchPuller) (7.229 ms)Traceback (most recent call last):
  File "test.py", line 147, in ?
    result = testrunner.run(defaults)
  File "/home/pqm/pqm-workdir/home/---devel/launchpad/lib/zope/testing/testrunner.py", line 238, in run
    failed = not run_with_options(options)
  File "/home/pqm/pqm-workdir/home/---devel/launchpad/lib/zope/testing/testrunner.py", line 403, in run_with_options
    setup_layers, failures, errors)
  File "/home/pqm/pqm-workdir/home/---devel/launchpad/lib/zope/testing/testrunner.py", line 583, in run_layer
    return run_tests(options, tests, layer_name, failures, errors)
  File "/home/pqm/pqm-workdir/home/---devel/launchpad/lib/zope/testing/testrunner.py", line 512, in run_tests
    test(result)
  File "/usr/lib/python2.4/unittest.py", line 281, in __call__
    return self.run(*args, **kwds)
  File "/home/pqm/pqm-workdir/home/---devel/launchpad/lib/bzrlib/tests/__init__.py", line 1284, in run
    return unittest.TestCase.run(self, result)
  File "/usr/lib/python2.4/unittest.py", line 278, in run
    result.stopTest(self)
  File "/home/pqm/pqm-workdir/home/---devel/launchpad/lib/zope/testing/testrunner.py", line 861, in stopTest
    self.testTearDown()
  File "/home/pqm/pqm-workdir/home/---devel/launchpad/lib/zope/testing/testrunner.py", line 745, in testTearDown
    layer.testTearDown()
  File "/home/pqm/pqm-workdir/home/---devel/launchpad/lib/canonical/testing/profiled.py", line 24, in profiled_func
    return func(cls, *args, **kw)
  File "/home/pqm/pqm-workdir/home/---devel/launchpad/lib/canonical/testing/layers.py", line 179, in testTearDown
    raise LayerIsolationError(
canonical.testing.layers.LayerIsolationError: Test left uncollectable garbage
[<socket._fileobject object at 0x2b31ea2ebc90>] (referenced from [(<socket._fileobject object at 0x2b31ea2ebc90>,), [<socket._fileobject object at 0x2b31ea2ebc90>]])