Opened 3 years ago

Closed 3 years ago

#33292 closed Cleanup/optimization (invalid)

Failing GIS tests with MySQL

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

Description

With the attached settings.py that sets up a MySQL GIS database, cd tests && python3 runtests.py gis_tests --settings settings has 5 failures and 2 errors. The output is attached in output.txt.

If USE_TZ = False, gis_tests.geos_tests.test_geos.GEOSTest.test_emptyCollections is the only failure.

I came across this while testing https://code.djangoproject.com/ticket/33287, but fixing that doesn't seem to affect this ticket.

Attachments (2)

settings.py (3.5 KB ) - added by David Wyde 3 years ago.
settings.py for python3 runtests.py gis_tests --settings settings
output.txt (21.7 KB ) - added by David Wyde 3 years ago.
output of python3 runtests.py gis_tests --settings settings

Download all attachments as: .zip

Change History (3)

by David Wyde, 3 years ago

Attachment: settings.py added

settings.py for python3 runtests.py gis_tests --settings settings

by David Wyde, 3 years ago

Attachment: output.txt added

output of python3 runtests.py gis_tests --settings settings

comment:1 by Mariusz Felisiak, 3 years ago

Resolution: invalid
Status: newclosed

The Django tests should be run with USE_TZ = False that's why it's included in the test_sqlite.py, see also Using another settings module.

About gis_tests.geos_tests.test_geos.GEOSTest.test_emptyCollections, it's a bug in GEOS 3.8.0 that was fix in GEOS 3.8.1.

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