Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#25055 closed Bug (fixed)

Test invalid_models_tests.test_models.FieldNamesTests.test_M2M_long_column_name fails for backends that support very long names

Reported by: Michael Manfre Owned by: nobody
Component: Testing framework Version: 1.8
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The test doesn't use max_column_name_length to generate the m2m field name length. This causes the test to fail on backends that supports names longer than 71 characters (e.g. MSSQL).

Change History (2)

comment:1 by Tim Graham <timograham@…>, 9 years ago

Resolution: fixed
Status: newclosed

In f9c3587:

Fixed #25055 -- Made m2m long name testing friendlier for 3rd party databases.

comment:2 by Tim Graham <timograham@…>, 9 years ago

In 342074f4:

[1.8.x] Fixed #25055 -- Made m2m long name testing friendlier for 3rd party databases.

Backport of f9c3587b51487179cf3fb92b509790f4610d6012 from master

Note: See TracTickets for help on using tickets.
Back to Top