diff options
| author | Armin Rigo <arigo@tunes.org> | 2016-07-19 08:40:36 +0200 |
|---|---|---|
| committer | Armin Rigo <arigo@tunes.org> | 2016-07-19 08:40:36 +0200 |
| commit | bbae5839c3c0ae7f1ee6792ef2e4adf63f9acbc2 (patch) | |
| tree | 6f6400f29f4de22659b5f36bde5dd9b68191a4cf /testing | |
| parent | c09faaf402f0142ed6df0e1451d7458d50494596 (diff) | |
| download | cffi-bbae5839c3c0ae7f1ee6792ef2e4adf63f9acbc2.tar.gz | |
Use Py_LIMITED_API in the generated C extension modules, because doing
so seems easy. Still need to check if and how we have to produce the
actual .so files.
Diffstat (limited to 'testing')
| -rw-r--r-- | testing/cffi1/test_recompiler.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/testing/cffi1/test_recompiler.py b/testing/cffi1/test_recompiler.py index 4185cf4..1bd1da2 100644 --- a/testing/cffi1/test_recompiler.py +++ b/testing/cffi1/test_recompiler.py @@ -851,9 +851,12 @@ def test_unpack_args(): assert str(e2.value) == "foo0() takes no arguments (2 given)" assert str(e3.value) == "foo1() takes exactly one argument (0 given)" assert str(e4.value) == "foo1() takes exactly one argument (2 given)" - assert str(e5.value) == "foo2() takes exactly 2 arguments (0 given)" - assert str(e6.value) == "foo2() takes exactly 2 arguments (1 given)" - assert str(e7.value) == "foo2() takes exactly 2 arguments (3 given)" + assert str(e5.value) in ["foo2 expected 2 arguments, got 0", + "foo2() takes exactly 2 arguments (0 given)"] + assert str(e6.value) in ["foo2 expected 2 arguments, got 1", + "foo2() takes exactly 2 arguments (1 given)"] + assert str(e7.value) in ["foo2 expected 2 arguments, got 3", + "foo2() takes exactly 2 arguments (3 given)"] def test_address_of_function(): ffi = FFI() |
