diff options
| author | Armin Rigo <arigo@tunes.org> | 2012-05-31 13:42:58 +0200 |
|---|---|---|
| committer | Armin Rigo <arigo@tunes.org> | 2012-05-31 13:42:58 +0200 |
| commit | 7bcae7d01b63ec04cb84fcfcd5790b0427fc8b6b (patch) | |
| tree | f7cf9d8097fa6c052b9047bbcaf36015e108fb99 /testing | |
| parent | 732820981967f0bdb7273dd0ceca09edc841ef8e (diff) | |
| download | cffi-7bcae7d01b63ec04cb84fcfcd5790b0427fc8b6b.tar.gz | |
Dict initializer for structs.
Diffstat (limited to 'testing')
| -rw-r--r-- | testing/backend_tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testing/backend_tests.py b/testing/backend_tests.py index aaa211b..79f1172 100644 --- a/testing/backend_tests.py +++ b/testing/backend_tests.py @@ -348,6 +348,7 @@ class BackendTests: assert s.a == 0 assert s.b == 123 assert s.c == 456 + py.test.raises(KeyError, ffi.new, "struct foo", {'d': 456}) def test_struct_pointer(self): ffi = FFI(backend=self.Backend()) |
