diff options
author | Armin Rigo <arigo@tunes.org> | 2020-07-27 18:21:36 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2020-07-27 18:21:36 +0200 |
commit | 11f8fa912bdf6003cc36d283162aa97a0a602a0f (patch) | |
tree | 9513c7d428b1bdddb029c21cd654426fefc3177f /testing | |
parent | 23a2cf4031c1fa3b0652fe4c87b05283b813d815 (diff) | |
download | cffi-11f8fa912bdf6003cc36d283162aa97a0a602a0f.tar.gz |
more CPython 3.9b5 fixes
Diffstat (limited to 'testing')
-rw-r--r-- | testing/cffi1/test_recompiler.py | 4 | ||||
-rw-r--r-- | testing/cffi1/test_verify1.py | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/testing/cffi1/test_recompiler.py b/testing/cffi1/test_recompiler.py index 397270b..b35c3eb 100644 --- a/testing/cffi1/test_recompiler.py +++ b/testing/cffi1/test_recompiler.py @@ -889,8 +889,8 @@ def test_unpack_args(): e7 = py.test.raises(TypeError, lib.foo2, 45, 46, 47) def st1(s): s = str(s) - if s.startswith("_CFFI_test_unpack_args.CompiledLib."): - s = s[len("_CFFI_test_unpack_args.CompiledLib."):] + if s.startswith("_CFFI_test_unpack_args.Lib."): + s = s[len("_CFFI_test_unpack_args.Lib."):] return s assert st1(e1.value) == "foo0() takes no arguments (1 given)" assert st1(e2.value) == "foo0() takes no arguments (2 given)" diff --git a/testing/cffi1/test_verify1.py b/testing/cffi1/test_verify1.py index 33244cc..f65579b 100644 --- a/testing/cffi1/test_verify1.py +++ b/testing/cffi1/test_verify1.py @@ -76,6 +76,11 @@ def _Wconversion(cdef, source, **kargs): return lib def test_Wconversion_unsigned(): + if '-Wno-sign-conversion' in extra_compile_args: + # CPython 3.9 needs -Wno-sign-conversion, so we can't meaningfully + # run this test + py.test.skip("cannot test this on CPython >= 3.9") + # _Wconversion("unsigned foo(void);", "int foo(void) { return -1;}") |