X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=blobdiff_plain;f=lib%2Fbup%2Ft%2Ftvint.py;h=6bee0f32662946435c036ca1500cecf7b17cc2d2;hp=0cb8d732b90446c355c907655b49ca673b1c3b4e;hb=440135573f26e1f468fb173c96b60f3bded77840;hpb=51476a384daabaa6e2700859d2e4863ec7ca0284 diff --git a/lib/bup/t/tvint.py b/lib/bup/t/tvint.py index 0cb8d73..6bee0f3 100644 --- a/lib/bup/t/tvint.py +++ b/lib/bup/t/tvint.py @@ -38,6 +38,7 @@ def test_vint(): for x in [-x for x in values]: WVPASSEQ(encode_and_decode_vint(x), x) WVEXCEPT(EOFError, vint.read_vint, BytesIO()) + WVEXCEPT(EOFError, vint.read_vint, BytesIO(b"\x80\x80")) def encode_and_decode_bvec(x):