← Back to team overview

launchpad-dev team mailing list archive

Test failures on some platforms due to lazr.restful bug

 

[ Resending to the correct address, sorry Leonard ]

Hi,

Some of you are seeing

Failure in test
  lib/lp/registry/tests/../stories/webservice/xx-distribution.txt
Failed doctest test for xx-distribution.txt
  File
  "lib/lp/registry/tests/../stories/webservice/xx-distribution.txt",
  line 0

----------------------------------------------------------------------
File "lib/lp/registry/tests/../stories/webservice/xx-distribution.txt",
line 193, in xx-distribution.txt
Failed example:
    pprint_entry(antarctica_country_mirror_archive)
Exception raised:
    Traceback (most recent call last):
      File
      "/home/abentley/launchpad/stable/eggs/zope.testing-3.8.1-py2.5.egg/zope/testing/doctest.py",
      line 1361, in __run
        compileflags, 1) in test.globs
      File "<doctest xx-distribution.txt[line 193, example 42]>", line
      1, in <module>
      File
      "/home/abentley/launchpad/stable/eggs/lazr.restful-0.9.24-py2.5.egg/lazr/restful/testing/webservice.py",
      line 168, in pprint_entry
        for key, value in sorted(json_body.items()):
    AttributeError: 'NoneType' object has no attribute 'items'

where the failure is actually in the patch command before (checking
response codes of all webservice codes can give more useful error
messages.)

I tracked this down to

  https://bugs.edge.launchpad.net/lazr.restful/+bug/561521

It only affects some platforms, and not ec2/buildbot apparently, so
you'll probably only see it locally.

Thanks,

James



Follow ups