From 162a0f942b8c049ef3b7a4c6ad7f28f8a46667dd Mon Sep 17 00:00:00 2001
From: Tom Collins <tom.collins@digi.com>
Date: Fri, 12 May 2017 13:28:07 -0700
Subject: [PATCH] tests/io/bytesio_ext: Test read() after seek() past end of
 BytesIO object.

---
 tests/io/bytesio_ext.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/io/bytesio_ext.py b/tests/io/bytesio_ext.py
index e827d1409..e454b2fd9 100644
--- a/tests/io/bytesio_ext.py
+++ b/tests/io/bytesio_ext.py
@@ -4,6 +4,10 @@ try:
 except ImportError:
     import io
 
+a = io.BytesIO(b"foobar")
+a.seek(10)
+print(a.read(10))
+
 a = io.BytesIO()
 print(a.seek(8))
 a.write(b"123")
-- 
GitLab