diff options
| author | Damien George | 2014-09-23 12:09:26 +0000 |
|---|---|---|
| committer | Damien George | 2014-09-23 14:15:45 +0000 |
| commit | 96e20c600f6498c403445956077f85dd2fb548aa (patch) | |
| tree | 2a6082579f34e863f1066b734ad24eba92841896 /tests/extmod | |
| parent | 5a5555e385c0a6ff380a269805ab99a6094e30da (diff) | |
tests: Fix uctypes tests to run on 64bit arch; enable more native tests.
Diffstat (limited to 'tests/extmod')
| -rw-r--r-- | tests/extmod/uctypes_ptr_le.py | 2 | ||||
| -rw-r--r-- | tests/extmod/uctypes_ptr_native_le.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/extmod/uctypes_ptr_le.py b/tests/extmod/uctypes_ptr_le.py index ef9890c3f..4125dd86f 100644 --- a/tests/extmod/uctypes_ptr_le.py +++ b/tests/extmod/uctypes_ptr_le.py @@ -9,7 +9,7 @@ desc = { bytes = b"01" addr = uctypes.addressof(bytes) -buf = addr.to_bytes(4) +buf = addr.to_bytes(uctypes.sizeof(desc)) S = uctypes.struct(desc, uctypes.addressof(buf), uctypes.LITTLE_ENDIAN) diff --git a/tests/extmod/uctypes_ptr_native_le.py b/tests/extmod/uctypes_ptr_native_le.py index 139ed3280..ba06b2650 100644 --- a/tests/extmod/uctypes_ptr_native_le.py +++ b/tests/extmod/uctypes_ptr_native_le.py @@ -15,7 +15,7 @@ desc = { bytes = b"01" addr = uctypes.addressof(bytes) -buf = addr.to_bytes(4) +buf = addr.to_bytes(uctypes.sizeof(desc)) S = uctypes.struct(desc, uctypes.addressof(buf), uctypes.NATIVE) |
