summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2020-07-28 12:00:32 +0200
committerArmin Rigo <arigo@tunes.org>2020-07-28 12:00:32 +0200
commit913767b6eff974f650722041eefc7f2076c09b18 (patch)
treea20deceb7c171621626709f9a4c6b478ee39258d
parent11f8fa912bdf6003cc36d283162aa97a0a602a0f (diff)
downloadcffi-913767b6eff974f650722041eefc7f2076c09b18.tar.gz
Revert 58f2e09a4254 and part of 4a15fb9e4aec: it was fixed in CPython after the
3.9b5 release.
-rw-r--r--testing/cffi0/test_verify.py5
-rw-r--r--testing/cffi1/test_verify1.py5
-rw-r--r--testing/support.py4
3 files changed, 0 insertions, 14 deletions
diff --git a/testing/cffi0/test_verify.py b/testing/cffi0/test_verify.py
index 65833b8..3a1c0b9 100644
--- a/testing/cffi0/test_verify.py
+++ b/testing/cffi0/test_verify.py
@@ -97,11 +97,6 @@ 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;}")
diff --git a/testing/cffi1/test_verify1.py b/testing/cffi1/test_verify1.py
index f65579b..33244cc 100644
--- a/testing/cffi1/test_verify1.py
+++ b/testing/cffi1/test_verify1.py
@@ -76,11 +76,6 @@ 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;}")
diff --git a/testing/support.py b/testing/support.py
index 282224d..de8131c 100644
--- a/testing/support.py
+++ b/testing/support.py
@@ -112,7 +112,3 @@ else:
extra_compile_args = ['-Werror', '-Wall', '-Wextra', '-Wconversion',
'-Wno-unused-parameter',
'-Wno-unreachable-code']
- # CPython 3.9 added in its headers something that triggers this warning,
- # so we need to disable it
- if sys.version_info >= (3, 9):
- extra_compile_args.append('-Wno-sign-conversion')