]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/t/tvint.py
tests: vint: test EOFError after first byte
[bup.git] / lib / bup / t / tvint.py
index 0cb8d732b90446c355c907655b49ca673b1c3b4e..6bee0f32662946435c036ca1500cecf7b17cc2d2 100644 (file)
@@ -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):