Opened 12 years ago

Closed 12 years ago

#17959 closed Cleanup/optimization (fixed)

Silence output during GIS tests

Reported by: Claude Paroz Owned by: nobody
Component: GIS Version: dev
Severity: Normal Keywords: test logging
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Some django.contrib.gis tests outputs "BEGIN... errors/notices ... END" content, because underlying GEOS/GDAL libraries are outputing difficult-to-catch errors. I'm suggesting to use logging to handle this issue. Patch follows.

Attachments (2)

17959-1.diff (12.8 KB ) - added by Claude Paroz 12 years ago.
Use logging to silence test output
17959-2.diff (9.5 KB ) - added by Claude Paroz 12 years ago.
Updated patch

Download all attachments as: .zip

Change History (5)

by Claude Paroz, 12 years ago

Attachment: 17959-1.diff added

Use logging to silence test output

comment:1 by Claude Paroz, 12 years ago

Note that this patch is using the capture_logging context manager proposed in #17958. It cannot be tested as is without it.

comment:2 by Andrew Godwin, 12 years ago

Triage Stage: UnreviewedAccepted

by Claude Paroz, 12 years ago

Attachment: 17959-2.diff added

Updated patch

comment:3 by Claude Paroz <claude@…>, 12 years ago

Resolution: fixed
Status: newclosed

In 53c8b2c0c52cf999b644184bfe51e9f59d89286e:

Fixed #17959 -- Silenced output during GIS tests

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