summaryrefslogtreecommitdiff
path: root/testing/cffi1/test_ffi_obj.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue 556Armin Rigo2023-01-091-4/+2
| | | | Trying to make this test a little bit less fragile
* Replace py.test usage with pytest, explicitly require py for testspy.testMiro HronĨok2022-11-111-24/+24
| | | | | | | pytest 7.2+ no longer depends on py. It ships py.path and py.error only. See https://docs.pytest.org/en/7.2.x/changelog.html#deprecations The tests use py.code as well, hence we declare and document a test dependency on py.
* Fix deprecated uses of pytest.raises()Ronan Lamy2019-03-121-3/+7
|
* Implement ffi.from_buffer("foo[]", x)Armin Rigo2019-01-071-5/+17
| | | | | Also contains some improvements to the documentation about other recent additions
* Issue #394Armin Rigo2018-12-161-0/+10
| | | | Implement ffi.from_buffer(x, require_writable=True)
* Make 'ffi.buffer' be the type of minibuffers returned by cffi, andArmin Rigo2017-02-041-0/+1
| | | | 'ffi.buffer()' now calls the constructor.
* fix testArmin Rigo2016-12-071-1/+2
|
* typedef int foo_t[...];Armin Rigo2016-09-201-0/+4
|
* Remove again ffi.rawstring(), and implement instead ffi.unpack().Armin Rigo2016-04-161-9/+4
| | | | | | | | | | | | | Pre-documentation notes: (hi Amaury :-) * ffi.unpack(<cdata 'char'>, n) == ffi.buffer(<cdata 'char'>, n)[:] but I hope it is a little bit more natural * ffi.unpack(<cdata 'wchar_t'>, n): this is the original motivation, because it has no previous equivalent * ffi.unpack(<cdata 'int'>, n) == list(<cdata 'int'>[0:n]) but should be much faster on CPython
* Python3 compatArmin Rigo2016-04-151-3/+3
|
* ffi.rawstring(), with a minimal interfaceArmin Rigo2016-04-151-0/+12
|
* Add a __class__ attribute on lib objectsArmin Rigo2015-12-111-0/+2
|
* py3k compatArmin Rigo2015-12-091-1/+5
|
* hg merge static-callbackArmin Rigo2015-12-071-3/+8
|\
| * py3k compatArmin Rigo2015-12-071-3/+8
| |
* | extra testsArmin Rigo2015-12-071-0/+30
|/
* Copy the PyPy behavior on CPython too: two calls to new_handle(x),Armin Rigo2015-11-231-0/+5
| | | | even with the same x, now return cdatas that compare as different.
* issue #233: ffi.init_once()Armin Rigo2015-11-231-0/+34
|
* Show <ctype 'FILE'> instead of <ctype 'struct _IO_FILE'>Armin Rigo2015-11-031-1/+1
|
* Issue #228: do the same for "FILE". Only remaining case now is theArmin Rigo2015-11-031-0/+6
| | | | | | | very obscure Windows type UNICODE_STRING. I think it is unlikely that someone hits the case of their cdef not mentioning UNICODE_STRING but their runtime code still wants to use it, so I'll close this issue.
* Issue #228: "bool" not working in out-of-line FFI objects. Same problemArmin Rigo2015-11-021-0/+14
| | | | | | | with all Windows common types. Mostly fixed by moving the list of common types to C code. The only remaining corner case I can think of is "FILE", which works only if it was mentioned in the cdef while building the out-of-line module.
* ffi.memmove()Armin Rigo2015-10-081-0/+53
|
* Make the type objects mortalArmin Rigo2015-09-301-0/+26
|
* Python 3 compatibilityArmin Rigo2015-07-061-2/+2
|
* Port the new_allocator() work from pypyArmin Rigo2015-07-061-0/+92
|
* New argument "onerror" on ffi.callback()Armin Rigo2015-07-041-0/+29
|
* Some detailsArmin Rigo2015-06-071-2/+3
|
* In the type parser, escape error messages and don't display the inputArmin Rigo2015-06-021-0/+6
| | | | type if too huge
* Issue #203: add keyword arguments to ffi.string(), ffi.buffer(),Armin Rigo2015-06-011-1/+11
| | | | ffi.getwinerror()
* the big Moving Files Around stepArmin Rigo2015-05-121-0/+180