From b0f5e43046c6b4be473e1d98623e3157221719af Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 30 Nov 2016 15:03:35 -0500 Subject: Finish configuring flufl.testing. Also, use the better way to set the LMTP ident. --- src/mailman/testing/helpers.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mailman/testing/helpers.py') diff --git a/src/mailman/testing/helpers.py b/src/mailman/testing/helpers.py index 01b362192..233b03cf8 100644 --- a/src/mailman/testing/helpers.py +++ b/src/mailman/testing/helpers.py @@ -568,3 +568,11 @@ def hackenv(envar, new_value): del os.environ[envar] else: os.environ[envar] = old_value + + +def nose2_start_test_run_callback(plugin): + from mailman.testing.layers import ConfigLayer, MockAndMonkeyLayer + MockAndMonkeyLayer.testing_mode = True + if (plugin.stderr or + len(os.environ.get('MM_VERBOSE_TESTLOG', '').strip()) > 0): + ConfigLayer.stderr = True -- cgit v1.2.3-70-g09d2