Opened 5 years ago

Closed 5 years ago

#20904 closed Bug (fixed)

Test failure on Oracle: test_ticket_16885

Reported by: Shai Berger Owned by: nobody
Component: Database layer (models, ORM) Version: 1.4
Severity: Normal Keywords: oracle
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Running tests on the current updated stable/1.4.x branch:

ERROR: test_ticket_16885 (regressiontests.test_runner.tests.Ticket16885RegressionTests)
Features are also confirmed on mirrored databases.
Traceback (most recent call last):
  File "/home/django/django/tests/regressiontests/test_runner/", line 235, in test_ticket_16885
  File "/home/django/django/django/test/", line 317, in setup_databases
    self.verbosity, autoclobber=not self.interactive)
  File "/home/django/django/django/db/backends/", line 271, in create_test_db
  File "/home/django/django/django/core/management/", line 150, in call_command
    return klass.execute(*args, **defaults)
  File "/home/django/django/django/core/management/", line 249, in execute
SystemExit: 1

This is caused by trying to validate all the models where some models have a CharField as PK, but on Oracle these are reported by Django as null=True. This happens although the test explicitly tries to work on SQLite, regardless of settings.

Change History (2)

comment:1 Changed 5 years ago by Tim Graham

Triage Stage: UnreviewedAccepted

This test was removed in 1.5: ad47364dd324508e8332ea853da59772431398aa

The null pk issue was also fixed in 1.5: 584e2c03376895aeb0404cc1fcc1ad24dfdbc58e

Not sure the best way to address this for 1.4.

comment:2 Changed 5 years ago by Shai Berger <shai@…>

Resolution: fixed
Status: newclosed

In d9dc98159d0454d74aebec3e9a763ddecea0961e:

[1.4.x] Fixed #20904: Test failure on Oracle
Just skip the failing test, the failure isn't really relevant; also,
both the test and the reason for its failure were removed in 1.5.

Thanks Tim Graham for advice on 1.5.

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