about summary refs log tree commit diff stats
path: root/example/jitter/memstruct.py
diff options
context:
space:
mode:
Diffstat (limited to 'example/jitter/memstruct.py')
-rw-r--r--example/jitter/memstruct.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/jitter/memstruct.py b/example/jitter/memstruct.py
index 5472798d..3b6358cd 100644
--- a/example/jitter/memstruct.py
+++ b/example/jitter/memstruct.py
@@ -214,10 +214,10 @@ print
 raw_miams = '\x00'.join('Miams') + '\x00'*3
 raw_miams_array = [ord(c) for c in raw_miams]
 assert list(data.array)[:len(raw_miams_array)] == raw_miams_array
-assert data.array.cast(Str("utf16").pinned) == memstr
+assert data.array.cast(Str("utf16")) == memstr
 # Default is "ansi"
-assert data.array.cast(Str().pinned) != memstr
-assert data.array.cast(Str("utf16").pinned).val == memstr.val
+assert data.array.cast(Str()) != memstr
+assert data.array.cast(Str("utf16")).val == memstr.val
 
 print "See that the original array has been modified:"
 print repr(data)