← Back to team overview

launchpad-dev team mailing list archive

Error in layer teardown: AttributeError: 'NoneType' object has no attribute 'read'

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm getting this error when layers are torn down.  Anyone know why?

For example:


Running canonical.testing.layers.AppServerLayer tests:
  Running in a subprocess.
  Set up canonical.testing.layers.BaseLayer in 0.004 seconds.
  Set up canonical.testing.layers.DatabaseLayer in 0.565 seconds.
  Set up canonical.testing.layers.LibrarianLayer in 9.472 seconds.
  Set up canonical.testing.layers.MemcachedLayer in 0.220 seconds.
  Set up canonical.testing.layers.LaunchpadLayer in 0.000 seconds.
  Set up canonical.testing.layers.FunctionalLayer in 7.586 seconds.
  Set up canonical.testing.layers.GoogleServiceLayer in 2.655 seconds.
  Set up canonical.testing.layers.LaunchpadFunctionalLayer in 0.000 seconds.
  Set up canonical.testing.layers.AppServerLayer in 12.713 seconds.
  Running:
..........................................................................No
handlers could be found for logger "lazr.smtptest"
......
  Ran 80 tests with 0 failures and 0 errors in 1 minutes 53.773 seconds.
  Tear down canonical.testing.layers.AppServerLayer in 0.508 seconds.
  Tear down canonical.testing.layers.LaunchpadFunctionalLayer in 0.000
seconds.
  Tear down canonical.testing.layers.LaunchpadLayer in 0.000 seconds.
  Tear down canonical.testing.layers.DatabaseLayer in 0.024 seconds.
  Tear down canonical.testing.layers.LibrarianLayer in 0.511 seconds.
  Tear down canonical.testing.layers.MemcachedLayer in 5.133 seconds.
  Tear down canonical.testing.layers.FunctionalLayer ... not supported
80 0 0
  Tear down canonical.testing.layers.GoogleServiceLayer in 0.168 seconds.
  Tear down canonical.testing.layers.BaseLayer in 0.000 seconds.
Error in sys.exitfunc:
Exception in thread Thread-35:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.5/threading.py", line 446, in run
    self.__target(*self.__args, **self.__kwargs)
  File
"/home/abentley/launchpad/stable/eggs/zope.testing-3.8.1-py2.5.egg/zope/testing/testrunner/runner.py",
line 439, in spawn_layer_in_subprocess
    erriter = iter(child.stderr.read().splitlines())
AttributeError: 'NoneType' object has no attribute 'read'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksxM3AACgkQ0F+nu1YWqI1mRQCdFEbLvkK4kRFE2SIjALWP1x1U
dxwAmgIFcD1OgzKX28jjwydNEmlkIRO1
=9Xwa
-----END PGP SIGNATURE-----



Follow ups