mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 17:11:52 +08:00
lint fixes
This commit is contained in:
@@ -147,7 +147,7 @@ def test_fail__valid_rfc_host(arg: Any) -> None:
|
||||
@pytest.mark.parametrize("arg", ["0 ", 0, "22", 443, 65535])
|
||||
def test_ok__valid_port(arg: Any) -> None:
|
||||
value = valid_port(arg)
|
||||
assert type(value) == int # pylint: disable=unidiomatic-typecheck
|
||||
assert type(value) is int # pylint: disable=unidiomatic-typecheck
|
||||
assert value == int(str(arg).strip())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user