From 8cb253f8d6333af0a575d5951379c090752c0fc6 Mon Sep 17 00:00:00 2001 From: Michael Foord Date: Sun, 21 Mar 2010 00:55:58 +0000 Subject: Change order of arguments in a unittest function. --- Lib/unittest/loader.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Lib/unittest/loader.py b/Lib/unittest/loader.py index 4036454..9eede8b 100644 --- a/Lib/unittest/loader.py +++ b/Lib/unittest/loader.py @@ -33,13 +33,13 @@ def _make_failed_import_test(name, suiteClass): # Python 2.3 compatibility # format_exc returns two frames of discover.py as well message += '\n%s' % traceback.format_exc() - return _make_failed_test('ModuleImportFailure', name, suiteClass, - ImportError(message)) + return _make_failed_test('ModuleImportFailure', name, ImportError(message), + suiteClass) def _make_failed_load_tests(name, exception, suiteClass): - return _make_failed_test('LoadTestsFailure', name, suiteClass, exception) + return _make_failed_test('LoadTestsFailure', name, exception, suiteClass) -def _make_failed_test(classname, methodname, suiteClass, exception): +def _make_failed_test(classname, methodname, exception, suiteClass): def testFailure(self): raise exception attrs = {methodname: testFailure} -- cgit v0.12