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.
95
95
warnings.filterwarnings(
96
'ignore', 'PyCrypto', RuntimeWarning, 'twisted[.]conch[.]ssh'
98
warnings.filterwarnings(
99
'ignore', 'twisted.python.plugin', DeprecationWarning,
101
warnings.filterwarnings(
102
'ignore', 'bzrlib.*was deprecated', DeprecationWarning
96
'ignore', 'PyCrypto', RuntimeWarning, 'twisted[.]conch[.]ssh'
98
warnings.filterwarnings(
99
'ignore', 'twisted.python.plugin', DeprecationWarning,
101
warnings.filterwarnings(
102
'ignore', 'bzrlib.*was deprecated', DeprecationWarning
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
108
108
warnings.filterwarnings(
110
re.escape('clear_request_started() called outside of a request'),
110
re.escape('clear_request_started() called outside of a request'),
114
114
# Any warnings not explicitly silenced are errors
115
115
warnings.filterwarnings('error', append=True)