ForbiddenAttribute error in archivesubscriber.txt

Bug #372842 reported by Curtis Hovey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Michael Nelson

Bug Description

archivesubscriber.txt fails in several places. The root test failure is really about the first two errors; the test cannot set the date_created for testing purposes.

File "lib/canonical/launchpad/ftests/../doc/archivesubscriber.txt", line 152, in archivesubscriber.txt
Failed example:
    new_sub.date_created = datetime(2009, 2, 26, tzinfo=pytz.UTC)
Exception raised:
    Traceback (most recent call last):
      File "/home/curtis/Work/launchpad/question-subscribers-portlet/utilities/../lib/zope/testing/doctest.py", line 1360, in __run
        save_stdout = sys.stdout
      File "<doctest archivesubscriber.txt[31]>", line 1, in ?
        new_sub.date_created = datetime(2009, 2, 26, tzinfo=pytz.UTC)
    ForbiddenAttribute: ('date_created', <canonical.launchpad.database.archivesubscriber.ArchiveSubscriber object at 0xd872fec>)

Revision history for this message
Michael Nelson (michael.nelson) wrote :

Strange... I fixed that failure before I committed... I must have done so in a separate branch?? (I removed the proxy in the test...). Anyway I'll submit a testfix now...

Changed in soyuz:
status: Triaged → In Progress
Revision history for this message
Michael Nelson (michael.nelson) wrote :
Revision history for this message
Michael Nelson (michael.nelson) wrote :

r8352

Changed in soyuz:
assignee: nobody → Michael Nelson (michael.nelson)
status: In Progress → Fix Committed
Changed in soyuz:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.