summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2017-03-13 14:05:01 +0100
committerArmin Rigo <arigo@tunes.org>2017-03-13 14:05:01 +0100
commit955a0c9859db0997a4a2a18b04653c081b5e9f02 (patch)
tree3f5d4fbaacd42dd4f213eba4fc8434c666057b5b
parent770494841b78c08a8df9123a719ab7254bfd1e9a (diff)
downloadcffi-955a0c9859db0997a4a2a18b04653c081b5e9f02.tar.gz
python 2.6 compat
-rw-r--r--testing/cffi0/backend_tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/cffi0/backend_tests.py b/testing/cffi0/backend_tests.py
index 65bf0ae..945815a 100644
--- a/testing/cffi0/backend_tests.py
+++ b/testing/cffi0/backend_tests.py
@@ -1230,7 +1230,8 @@ class BackendTests:
def test_ffi_buffer_comparisons(self):
ffi = FFI(backend=self.Backend())
ba = bytearray(range(100, 110))
- assert ba == memoryview(ba) # justification for the following
+ if sys.version_info >= (2, 7):
+ assert ba == memoryview(ba) # justification for the following
a = ffi.new("uint8_t[]", list(ba))
c = ffi.new("uint8_t[]", [99] + list(ba))
try: