diff options
author | Bastien Nocera <hadess@hadess.net> | 2020-01-20 18:35:40 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2020-03-19 12:43:28 +0100 |
commit | c348d45fb518775f6a9b60a6c9b889bb3667d344 (patch) | |
tree | aeb44fed88190759336554c9dffa84c107ccfd67 | |
parent | e6574f666cb92947b136ac0c951112b65360be7c (diff) | |
download | pam_wrapper-c348d45fb518775f6a9b60a6c9b889bb3667d344.tar.gz pam_wrapper-c348d45fb518775f6a9b60a6c9b889bb3667d344.tar.xz pam_wrapper-c348d45fb518775f6a9b60a6c9b889bb3667d344.zip |
python: Fix typos
Signed-off-by: Bastien Nocera <hadess@hadess.net>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r-- | src/python/pypamtest.c | 4 | ||||
-rwxr-xr-x | tests/pypamtest_test.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/python/pypamtest.c b/src/python/pypamtest.c index 905c652..4147364 100644 --- a/src/python/pypamtest.c +++ b/src/python/pypamtest.c @@ -303,7 +303,7 @@ set_pypamtest_exception(PyObject *exc, if (test_repr[0] != '\0' && failed != NULL) { PyErr_Format(exc, - "Error [%d]: Test case %s retured [%d]", + "Error [%d]: Test case %s returned [%d]", perr, test_repr, failed->op_rv); } else { obj = Py_BuildValue(discard_const_p(char, "(i,s)"), @@ -906,7 +906,7 @@ static int py_tc_list_to_cstruct_list(PyObject *py_test_list, PyDoc_STRVAR(RunPamTest__doc__, "Run PAM tests\n\n" "This function runs PAM test cases and reports result\n" -"Paramaters:\n" +"Parameters:\n" "service: The PAM service to use in the conversation (string)\n" "username: The user to run PAM conversation as\n" "test_list: Sequence of pypamtest.TestCase objects\n" diff --git a/tests/pypamtest_test.py b/tests/pypamtest_test.py index 32ef65d..ed12a71 100755 --- a/tests/pypamtest_test.py +++ b/tests/pypamtest_test.py @@ -127,7 +127,7 @@ class PyPamTestRunTest(unittest.TestCase): self.assertRaisesRegexp(pypamtest.PamTestError, "Error \[2\]: Test case { pam_operation \[0\] " "expected_rv \[0\] flags \[0\] } " - "retured \[\d\]", + "returned \[\d\]", pypamtest.run_pamtest, "neo", "matrix_py", [tc], [ neo_password ]) |