Add more syslog tests (GH-97953)

This commit is contained in:
Serhiy Storchaka 2022-10-07 20:17:08 +03:00 committed by GitHub
parent 80b3e32d62
commit cae7d1d7a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 95 additions and 8 deletions

View file

@ -235,7 +235,7 @@ syslog_setlogmask(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "l;mask for priority", &maskpri))
return NULL;
if (PySys_Audit("syslog.setlogmask", "(O)", args ? args : Py_None) < 0) {
if (PySys_Audit("syslog.setlogmask", "l", maskpri) < 0) {
return NULL;
}
omaskpri = setlogmask(maskpri);