Allow boolean parameters for `pytest.param` (#4176)

This commit is contained in:
Charlie Marsh 2023-05-01 18:07:50 -07:00 committed by GitHub
parent a4ce746892
commit 56c45013c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 6 deletions

View File

@ -42,22 +42,23 @@ const FUNC_CALL_NAME_ALLOWLIST: &[&str] = &[
"assertEquals",
"assertNotEqual",
"assertNotEquals",
"bytes",
"failIfEqual",
"failUnlessEqual",
"float",
"fromkeys",
"get",
"getattr",
"getboolean",
"getfloat",
"getint",
"index",
"int",
"param",
"pop",
"setattr",
"setdefault",
"str",
"bytes",
"int",
"float",
"getint",
"getfloat",
"getboolean",
];
const FUNC_DEF_NAME_ALLOWLIST: &[&str] = &["__setitem__"];