[pypy-commit] cffi default: python 2.6 compat
arigo
pypy.commits at gmail.com
Mon Mar 13 09:05:03 EDT 2017
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r2908:e4b182999315
Date: 2017-03-13 14:05 +0100
http://bitbucket.org/cffi/cffi/changeset/e4b182999315/
Log: python 2.6 compat
diff --git a/testing/cffi0/backend_tests.py b/testing/cffi0/backend_tests.py
--- a/testing/cffi0/backend_tests.py
+++ b/testing/cffi0/backend_tests.py
@@ -1230,7 +1230,8 @@
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:
More information about the pypy-commit
mailing list