~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Gary Poster
  • Date: 2009-05-01 21:07:23 UTC
  • mto: (8329.1.1 buildout2)
  • mto: This revision was merged to the branch mainline in revision 8489.
  • Revision ID: gary.poster@canonical.com-20090501210723-fgfjm2mbpm8r1dii
slight clean up.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
 
91
91
# Silence spurious warnings. Note that this does not propagate to subprocesses
92
92
# so this is not always as easy as it seems. Warnings caused by our code that
93
 
# need to be silenced should have an accomponied Bug reference.
 
93
# need to be silenced should have an accompanied Bug reference.
94
94
#
95
95
warnings.filterwarnings(
96
 
        'ignore', 'PyCrypto', RuntimeWarning, 'twisted[.]conch[.]ssh'
97
 
        )
98
 
warnings.filterwarnings(
99
 
        'ignore', 'twisted.python.plugin', DeprecationWarning,
100
 
        )
101
 
warnings.filterwarnings(
102
 
        'ignore', 'bzrlib.*was deprecated', DeprecationWarning
 
96
    'ignore', 'PyCrypto', RuntimeWarning, 'twisted[.]conch[.]ssh'
 
97
    )
 
98
warnings.filterwarnings(
 
99
    'ignore', 'twisted.python.plugin', DeprecationWarning,
 
100
    )
 
101
warnings.filterwarnings(
 
102
    'ignore', 'bzrlib.*was deprecated', DeprecationWarning
103
103
)
104
104
 
105
105
# This warning will be triggered if the beforeTraversal hook fails. We
106
106
# want to ensure it is not raised as an error, as this will mask the real
107
107
# problem.
108
108
warnings.filterwarnings(
109
 
        'always',
110
 
        re.escape('clear_request_started() called outside of a request'),
111
 
        UserWarning
112
 
        )
 
109
    'always',
 
110
    re.escape('clear_request_started() called outside of a request'),
 
111
    UserWarning
 
112
    )
113
113
 
114
114
# Any warnings not explicitly silenced are errors
115
115
warnings.filterwarnings('error', append=True)