Opened 5 years ago

Closed 5 years ago

#12182 closed (invalid)

1.0.3 runtests.py fails to validate models on MySQL 5.1.34 on Windows XP

Reported by: jfenwick Owned by: nobody
Component: Testing framework Version: 1.0
Severity: Keywords: mysql
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

When running django-1.0.3\tests\runtests.py I get this error:

Creating test database...
Error: One or more models did not validate:
serializers_regress.booleandata: "data": BooleanFields do not accept null values. Use a NullBooleanField instead.

May be related to: http://code.djangoproject.com/ticket/5563

Change History (2)

comment:1 Changed 5 years ago by jfenwick

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

I just tried runtests.py in django 1.0.3 with DATABASE_ENGINE = 'postgresql_psycopg2' and that also gave the same error.

comment:2 Changed 5 years ago by kmtracey

  • Resolution set to invalid
  • Status changed from new to closed

The behavior you are describing indicates you are running the 1.0.3 tests using some higher level of Django code. r10456 introduced the warning, and simultaneously fixed the test noted here to not pass null as a parameter to that field. This changeset was not backported to the 1.0.X branch, so the test (and code) in all 1.0.X releases do not have the change. If you are getting the message, then somehow when you are running the 1.0.3 tests you are picking up a higher level of Django code, either because it is installed in site-packages or because your PYTHONPATH points to it.

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