~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to buildout-templates/bin/test.in

  • Committer: Launchpad Patch Queue Manager
  • Date: 2010-07-30 16:30:12 UTC
  • mfrom: (11220.3.6 warnings-for-unproxied)
  • Revision ID: launchpad@pqm.canonical.com-20100730163012-pdu2ts6i65rrujai
[r=abentley][ui=none] Use warnings instead of printing to stderr for
        unwrapped proxy methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
160
160
    re.escape('clear_request_started() called outside of a request'),
161
161
    UserWarning
162
162
    )
163
 
 
164
 
# Any warnings not explicitly silenced are errors
165
 
warnings.filterwarnings('error', append=True)
166
 
 
 
163
# Unicode warnings are always fatal
 
164
warnings.filterwarnings('error', category=UnicodeWarning)
 
165
 
 
166
# shortlist() raises an error when it is misused.
 
167
warnings.filterwarnings('error', r'shortlist\(\)')
167
168
 
168
169
from canonical.ftests import pgsql
169
170
# If this is removed, make sure canonical.ftests.pgsql is updated