summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2020-01-05 15:31:54 +0100
committerArmin Rigo <arigo@tunes.org>2020-01-05 15:31:54 +0100
commit674eaa4d5910ff50d964c6998c8ee002ce21679f (patch)
treee94a5f7dc8b298c847d7ae980b87930efecbb774 /testing
parent263cff26c5edcb9e77990078faec25431303c107 (diff)
downloadcffi-674eaa4d5910ff50d964c6998c8ee002ce21679f.tar.gz
fix test for b9a98b040bd7
Diffstat (limited to 'testing')
-rw-r--r--testing/cffi1/test_recompiler.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/cffi1/test_recompiler.py b/testing/cffi1/test_recompiler.py
index f4ce11b..ae0e808 100644
--- a/testing/cffi1/test_recompiler.py
+++ b/testing/cffi1/test_recompiler.py
@@ -348,9 +348,9 @@ def test_verify_exact_field_offset():
lib = verify(ffi, 'test_verify_exact_field_offset',
"""struct foo_s { short a; int b; };""")
e = py.test.raises(ffi.error, ffi.new, "struct foo_s *", []) # lazily
- assert str(e.value) == ("struct foo_s: wrong offset for field 'b' (cdef "
- 'says 0, but C compiler says 4). fix it or use "...;" '
- "in the cdef for struct foo_s to make it flexible")
+ assert str(e.value).startswith(
+ "struct foo_s: wrong offset for field 'b' (cdef "
+ 'says 0, but C compiler says 4). fix it or use "...;" ')
def test_type_caching():
ffi1 = FFI(); ffi1.cdef("struct foo_s;")