diff options
-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 ]) |