Code

Opened 2 years ago

Closed 19 months 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

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

Download all attachments as: .zip

Change History (5)

Changed 2 years ago by claudep

Use logging to silence test output

comment:1 Changed 2 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 23 months ago by andrewgodwin

  • Triage Stage changed from Unreviewed to Accepted

Changed 19 months ago by claudep

Updated patch

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

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

In 53c8b2c0c52cf999b644184bfe51e9f59d89286e:

Fixed #17959 -- Silenced output during GIS tests

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.