Skip to content

Commit ab39725

Browse files
author
David Noble
committed
Fixed bug in test_binding.py: TestResponseReader.test_readinto_memoryview
This test no longer runs under Python 2.6 because the builtin type memoryview was introduced in Python 2.7. Signed-off-by: David Noble <dnoble@splunk.com>
1 parent 8d1165d commit ab39725

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_binding.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ def test_readinto_bytearray(self):
111111
self.assertTrue(response.empty)
112112

113113
def test_readinto_memoryview(self):
114+
import sys
115+
if sys.version_info < (2, 7, 0):
116+
return # memoryview is new to Python 2.7
114117
txt = "Checking readinto works as expected"
115118
response = binding.ResponseReader(StringIO(txt))
116119
arr = bytearray(10)

0 commit comments

Comments
 (0)