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", "assertEquals",
"assertNotEqual", "assertNotEqual",
"assertNotEquals", "assertNotEquals",
"bytes",
"failIfEqual", "failIfEqual",
"failUnlessEqual", "failUnlessEqual",
"float",
"fromkeys", "fromkeys",
"get", "get",
"getattr", "getattr",
"getboolean",
"getfloat",
"getint",
"index", "index",
"int",
"param",
"pop", "pop",
"setattr", "setattr",
"setdefault", "setdefault",
"str", "str",
"bytes",
"int",
"float",
"getint",
"getfloat",
"getboolean",
]; ];
const FUNC_DEF_NAME_ALLOWLIST: &[&str] = &["__setitem__"]; const FUNC_DEF_NAME_ALLOWLIST: &[&str] = &["__setitem__"];