Remove pylint:disable

This commit is contained in:
mhchia
2019-08-02 23:19:36 +08:00
parent 06a9511ab4
commit 2e94fcf56c
36 changed files with 7 additions and 64 deletions

View File

@ -14,13 +14,11 @@ def test_init():
for _ in range(10):
random_id_string += random.SystemRandom().choice(ALPHABETS)
peer_id = ID(random_id_string.encode())
# pylint: disable=protected-access
assert peer_id == random_id_string.encode()
def test_no_init_value():
with pytest.raises(Exception) as _:
# pylint: disable=no-value-for-parameter
ID()