launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #02133
Re: Error in layer teardown: AttributeError: 'NoneType' object has no attribute 'read'
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Aaron Bentley wrote:
> I'm getting this error when layers are torn down. Anyone know why?
I am still getting this. It's rather upsetting for me, because I like
it when the test suite runs without error.
It could be related to the fact that the machine I'm using for testing
has "only" 2G of memory, and testing tends to gobble it, but I don't
think it's exhausing swap.
Aaron
>
> 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'
_______________________________________________
Mailing list: https://launchpad.net/~launchpad-dev
Post to : launchpad-dev@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~launchpad-dev
More help : https://help.launchpad.net/ListHelp
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAktDSzcACgkQ0F+nu1YWqI3H1wCfYpPbIniKcM4PBhCOxecLozSp
fWAAn1H/jJ9Y9LR0kP3TPK4iVDglXR85
=YBQK
-----END PGP SIGNATURE-----
Follow ups
References