Django

Code

Ticket #8366 (closed: fixed)

Opened 4 months ago

Last modified 3 months ago

Modify views regression tests fixtures to not contain forward references

Reported by: ramiro Assigned to: nobody
Milestone: Component: Testing framework
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation:
Needs tests: Patch needs improvement:

Description

The views regression tests can't be run under MySQL with InnoDB storage and other RDBMS like MS SQL Server suffering from the limitation of not being able to handle forward references in serialized data (see #3615). The attached patch to the fixtures simply moves the "Boris" Author object instance before the articles he authored without breaking anything else.

The proposed change is arguably brittle because nothing guarantees no newer forward references could be introduced with future test enhancements. But, meanwhile, it allows these, no DB related, tests to be exercised when running the suite against these DB backends.

Attachments

views_tests_fixtures.diff (1.1 kB) - added by ramiro on 08/16/08 10:10:48.

Change History

08/16/08 10:10:48 changed by ramiro

  • attachment views_tests_fixtures.diff added.

08/22/08 09:07:51 changed by russellm

  • status changed from new to closed.
  • resolution set to fixed.

(In [8465]) Fixed #8366: Modified a test fixture to remove an unnecessary forward reference. Thanks to Ramiro Morales for the suggestion.


Add/Change #8366 (Modify views regression tests fixtures to not contain forward references)




Change Properties
Action