From fbb2378a737ef91ea4777fcf45a7b28b994884ef Mon Sep 17 00:00:00 2001 From: Andrea Corbellini Date: Wed, 11 Jul 2012 11:49:29 +0200 Subject: Suppress tracebacks caused by ConfigErrors. Show a kind error message instead of a traceback when an unknown configuration variable is found in a file. --- .../test_restricted_plugin_options/restricted_plugin_options.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functional_tests') diff --git a/functional_tests/doc_tests/test_restricted_plugin_options/restricted_plugin_options.rst b/functional_tests/doc_tests/test_restricted_plugin_options/restricted_plugin_options.rst index 9513fdf..6a08eaf 100644 --- a/functional_tests/doc_tests/test_restricted_plugin_options/restricted_plugin_options.rst +++ b/functional_tests/doc_tests/test_restricted_plugin_options/restricted_plugin_options.rst @@ -50,7 +50,7 @@ plugins implementing `startTest`, an exception is raised and nose exits. >>> run(argv=argv, plugins=restricted) #doctest: +REPORT_NDIFF +ELLIPSIS Traceback (most recent call last): ... - SystemExit: ... + SystemExit: 2 Errors are only raised when options defined by excluded plugins are used. @@ -86,4 +86,4 @@ error is raised. >>> run(argv=argv, plugins=restricted) # doctest: +ELLIPSIS Traceback (most recent call last): ... - ConfigError: Error reading config file '...bad.cfg': no such option 'with-meltedcheese' + SystemExit: 2 -- cgit v1.2.1