Opened 4 years ago

Closed 3 years ago

#17959 closed Cleanup/optimization (fixed)

Silence output during GIS tests

Reported by: claudep Owned by: nobody
Component: GIS Version: master
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


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 claudep 4 years ago.
Use logging to silence test output
17959-2.diff (9.5 KB) - added by claudep 3 years ago.
Updated patch

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by claudep

Use logging to silence test output

comment:1 Changed 4 years ago by claudep

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

comment:2 Changed 4 years ago by andrewgodwin

  • Triage Stage changed from Unreviewed to Accepted

Changed 3 years ago by claudep

Updated patch

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

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

In 53c8b2c0c52cf999b644184bfe51e9f59d89286e:

Fixed #17959 -- Silenced output during GIS tests

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