fix some tests, run clippy
@@ -7,10 +7,8 @@ assert bytes(range(4))
assert bytes(3)
assert b"bla"
assert bytes("bla", "utf8")
-try:
+with assertRaises(TypeError):
bytes("bla")
-except TypeError:
- assert True
a = b"abcd"
@@ -62,10 +60,8 @@ assert b"d" in b"abcd"
assert b"dc" not in b"abcd"
assert 97 in b"abcd"
assert 150 not in b"abcd"
-try:
+with assertRaises(ValueError):
350 in b"abcd"
-except ValueError:
- pass
# getitem
