summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2010-03-21 00:55:58 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2010-03-21 00:55:58 (GMT)
commit8cb253f8d6333af0a575d5951379c090752c0fc6 (patch)
tree0d9e8faf5d9f9a8975f547c25ca078260f561b2b /Lib
parent73dbe0461986208564f64e80a7b79264a6a38368 (diff)
downloadcpython-8cb253f8d6333af0a575d5951379c090752c0fc6.zip
cpython-8cb253f8d6333af0a575d5951379c090752c0fc6.tar.gz
cpython-8cb253f8d6333af0a575d5951379c090752c0fc6.tar.bz2
Change order of arguments in a unittest function.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/unittest/loader.py8
1 files 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}