Opened 14 years ago

Closed 14 years ago

#12182 closed (invalid)

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

Reported by: Jacob Fenwick 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: no UI/UX: no

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 by Jacob Fenwick, 14 years ago

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

comment:2 by Karen Tracey, 14 years ago

Resolution: invalid
Status: newclosed

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