Source: python-cffi
Version: 1.16.0-1
Severity: important
User: debian-pyt...@lists.debian.org
Usertags: python3.12

python-cffi fails autopkg tests with Python 3.12

see
https://launchpadlibrarian.net/695645855/buildlog_ubuntu-noble-amd64.python-cffi_1.16.0-1ubuntu1_BUILDING.txt.gz

=================================== FAILURES ===================================
_____________________ TestZIntegration.test_infrastructure _____________________

self = <testing.cffi0.test_zintegration.TestZIntegration object at 
0x7faed67cdd60>

    def test_infrastructure(self):
      run_setup_and_program('infrastructure', '''
        import snip_infrastructure
        assert snip_infrastructure.func() == 42
        ''')

testing/cffi0/test_zintegration.py:128:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
testing/cffi0/test_zintegration.py:107: in run_setup_and_program
    venv_dir = create_venv(dirname + '-cpy')
testing/cffi0/test_zintegration.py:29: in create_venv
    subprocess.check_call([
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['/tmp/ffi-0/infrastructure-cpy/bin/python', '-m', 'pip', 
'install', 'setuptools', 'wheel', ...],)
kwargs = {}, retcode = 1
cmd = ['/tmp/ffi-0/infrastructure-cpy/bin/python', '-m', 'pip', 'install', 
'setuptools', 'wheel', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
The arguments are the same as for the call function. Example: check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
          raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command 
'['/tmp/ffi-0/infrastructure-cpy/bin/python', '-m', 'pip', 'install', 
'setuptools', 'wheel', '--upgrade']' returned non-zero exit status 1.

/usr/lib/python3.12/subprocess.py:413: CalledProcessError
----------------------------- Captured stdout call -----------------------------
created virtual environment CPython3.12.0.final.0-64 in 186ms
  creator CPython3Posix(dest=/tmp/ffi-0/infrastructure-cpy, clear=False, 
no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, via=copy, 
app_data_dir=/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/virtualenv)
    added seed packages: pip==23.3
  activators 
BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
----------------------------- Captured stderr call -----------------------------
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f344bf33f80>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f344b9720f0>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f344b690830>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f344b68ae40>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f344b691700>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
ERROR: Could not find a version that satisfies the requirement setuptools (from 
versions: none)
ERROR: No matching distribution found for setuptools
____________________ TestZIntegration.test_distutils_module ____________________

self = <testing.cffi0.test_zintegration.TestZIntegration object at 
0x7faed6575640>

    def test_distutils_module(self):
      run_setup_and_program("distutils_module", '''
        import snip_basic_verify
        p = snip_basic_verify.C.getpwuid(0)
        assert snip_basic_verify.ffi.string(p.pw_name) == b"root"
        ''')

testing/cffi0/test_zintegration.py:134:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
testing/cffi0/test_zintegration.py:107: in run_setup_and_program
    venv_dir = create_venv(dirname + '-cpy')
testing/cffi0/test_zintegration.py:29: in create_venv
    subprocess.check_call([
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['/tmp/ffi-0/distutils_module-cpy/bin/python', '-m', 'pip', 
'install', 'setuptools', 'wheel', ...],)
kwargs = {}, retcode = 1
cmd = ['/tmp/ffi-0/distutils_module-cpy/bin/python', '-m', 'pip', 'install', 
'setuptools', 'wheel', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
The arguments are the same as for the call function. Example: check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
          raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command 
'['/tmp/ffi-0/distutils_module-cpy/bin/python', '-m', 'pip', 'install', 
'setuptools', 'wheel', '--upgrade']' returned non-zero exit status 1.

/usr/lib/python3.12/subprocess.py:413: CalledProcessError
----------------------------- Captured stdout call -----------------------------
created virtual environment CPython3.12.0.final.0-64 in 82ms
  creator CPython3Posix(dest=/tmp/ffi-0/distutils_module-cpy, clear=False, 
no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, via=copy, 
app_data_dir=/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/virtualenv)
    added seed packages: pip==23.3
  activators 
BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
----------------------------- Captured stderr call -----------------------------
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f6eb751f020>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f6eb756fd70>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f6eb7ab6f60>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f6eb7202db0>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f6eb7209880>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
ERROR: Could not find a version that satisfies the requirement setuptools (from 
versions: none)
ERROR: No matching distribution found for setuptools
__________________ TestZIntegration.test_distutils_package_1 ___________________

self = <testing.cffi0.test_zintegration.TestZIntegration object at 
0x7faed6575460>

    def test_distutils_package_1(self):
      run_setup_and_program("distutils_package_1", '''
        import snip_basic_verify1
        p = snip_basic_verify1.C.getpwuid(0)
        assert snip_basic_verify1.ffi.string(p.pw_name) == b"root"
        ''')

testing/cffi0/test_zintegration.py:141:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
testing/cffi0/test_zintegration.py:107: in run_setup_and_program
    venv_dir = create_venv(dirname + '-cpy')
testing/cffi0/test_zintegration.py:29: in create_venv
    subprocess.check_call([
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['/tmp/ffi-0/distutils_package_1-cpy/bin/python', '-m', 'pip', 
'install', 'setuptools', 'wheel', ...],)
kwargs = {}, retcode = 1
cmd = ['/tmp/ffi-0/distutils_package_1-cpy/bin/python', '-m', 'pip', 'install', 
'setuptools', 'wheel', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
The arguments are the same as for the call function. Example: check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
          raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command 
'['/tmp/ffi-0/distutils_package_1-cpy/bin/python', '-m', 'pip', 'install', 
'setuptools', 'wheel', '--upgrade']' returned non-zero exit status 1.

/usr/lib/python3.12/subprocess.py:413: CalledProcessError
----------------------------- Captured stdout call -----------------------------
created virtual environment CPython3.12.0.final.0-64 in 70ms
  creator CPython3Posix(dest=/tmp/ffi-0/distutils_package_1-cpy, clear=False, 
no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, via=copy, 
app_data_dir=/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/virtualenv)
    added seed packages: pip==23.3
  activators 
BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
----------------------------- Captured stderr call -----------------------------
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7fc70ffd2360>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7fc71063ad20>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7fc70fe78800>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7fc70fe72d20>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7fc70fe794c0>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
ERROR: Could not find a version that satisfies the requirement setuptools (from 
versions: none)
ERROR: No matching distribution found for setuptools
__________________ TestZIntegration.test_distutils_package_2 ___________________

self = <testing.cffi0.test_zintegration.TestZIntegration object at 
0x7faed6576750>

    def test_distutils_package_2(self):
      run_setup_and_program("distutils_package_2", '''
        import snip_basic_verify2
        p = snip_basic_verify2.C.getpwuid(0)
        assert snip_basic_verify2.ffi.string(p.pw_name) == b"root"
        ''')

testing/cffi0/test_zintegration.py:148:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
testing/cffi0/test_zintegration.py:107: in run_setup_and_program
    venv_dir = create_venv(dirname + '-cpy')
testing/cffi0/test_zintegration.py:29: in create_venv
    subprocess.check_call([
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['/tmp/ffi-0/distutils_package_2-cpy/bin/python', '-m', 'pip', 
'install', 'setuptools', 'wheel', ...],)
kwargs = {}, retcode = 1
cmd = ['/tmp/ffi-0/distutils_package_2-cpy/bin/python', '-m', 'pip', 'install', 
'setuptools', 'wheel', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
The arguments are the same as for the call function. Example: check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
          raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command 
'['/tmp/ffi-0/distutils_package_2-cpy/bin/python', '-m', 'pip', 'install', 
'setuptools', 'wheel', '--upgrade']' returned non-zero exit status 1.

/usr/lib/python3.12/subprocess.py:413: CalledProcessError
----------------------------- Captured stdout call -----------------------------
created virtual environment CPython3.12.0.final.0-64 in 73ms
  creator CPython3Posix(dest=/tmp/ffi-0/distutils_package_2-cpy, clear=False, 
no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, via=copy, 
app_data_dir=/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/virtualenv)
    added seed packages: pip==23.3
  activators 
BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
----------------------------- Captured stderr call -----------------------------
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f52fdf1a1b0>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f52fd0d9040>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f52fd0e4e90>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f52fd0ded20>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f52fd0e5520>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
ERROR: Could not find a version that satisfies the requirement setuptools (from 
versions: none)
ERROR: No matching distribution found for setuptools
___________________ TestZIntegration.test_setuptools_module ____________________

self = <testing.cffi0.test_zintegration.TestZIntegration object at 
0x7faed6577470>

    def test_setuptools_module(self):
      run_setup_and_program("setuptools_module", '''
        import snip_setuptools_verify
        p = snip_setuptools_verify.C.getpwuid(0)
        assert snip_setuptools_verify.ffi.string(p.pw_name) == b"root"
        ''')

testing/cffi0/test_zintegration.py:155:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
testing/cffi0/test_zintegration.py:107: in run_setup_and_program
    venv_dir = create_venv(dirname + '-cpy')
testing/cffi0/test_zintegration.py:29: in create_venv
    subprocess.check_call([
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['/tmp/ffi-0/setuptools_module-cpy/bin/python', '-m', 'pip', 
'install', 'setuptools', 'wheel', ...],)
kwargs = {}, retcode = 1
cmd = ['/tmp/ffi-0/setuptools_module-cpy/bin/python', '-m', 'pip', 'install', 
'setuptools', 'wheel', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
The arguments are the same as for the call function. Example: check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
          raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command 
'['/tmp/ffi-0/setuptools_module-cpy/bin/python', '-m', 'pip', 'install', 
'setuptools', 'wheel', '--upgrade']' returned non-zero exit status 1.

/usr/lib/python3.12/subprocess.py:413: CalledProcessError
----------------------------- Captured stdout call -----------------------------
created virtual environment CPython3.12.0.final.0-64 in 70ms
  creator CPython3Posix(dest=/tmp/ffi-0/setuptools_module-cpy, clear=False, 
no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, via=copy, 
app_data_dir=/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/virtualenv)
    added seed packages: pip==23.3
  activators 
BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
----------------------------- Captured stderr call -----------------------------
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f9dd7650c50>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f9dd6dbb380>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f9dd6daf050>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f9dd6dbac90>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f9dd6dc13a0>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
ERROR: Could not find a version that satisfies the requirement setuptools (from 
versions: none)
ERROR: No matching distribution found for setuptools
__________________ TestZIntegration.test_setuptools_package_1 __________________

self = <testing.cffi0.test_zintegration.TestZIntegration object at 
0x7faed6575370>

    def test_setuptools_package_1(self):
      run_setup_and_program("setuptools_package_1", '''
        import snip_setuptools_verify1
        p = snip_setuptools_verify1.C.getpwuid(0)
        assert snip_setuptools_verify1.ffi.string(p.pw_name) == b"root"
        ''')

testing/cffi0/test_zintegration.py:162:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
testing/cffi0/test_zintegration.py:107: in run_setup_and_program
    venv_dir = create_venv(dirname + '-cpy')
testing/cffi0/test_zintegration.py:29: in create_venv
    subprocess.check_call([
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['/tmp/ffi-0/setuptools_package_1-cpy/bin/python', '-m', 'pip', 
'install', 'setuptools', 'wheel', ...],)
kwargs = {}, retcode = 1
cmd = ['/tmp/ffi-0/setuptools_package_1-cpy/bin/python', '-m', 'pip', 
'install', 'setuptools', 'wheel', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
The arguments are the same as for the call function. Example: check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
          raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command 
'['/tmp/ffi-0/setuptools_package_1-cpy/bin/python', '-m', 'pip', 'install', 
'setuptools', 'wheel', '--upgrade']' returned non-zero exit status 1.

/usr/lib/python3.12/subprocess.py:413: CalledProcessError
----------------------------- Captured stdout call -----------------------------
created virtual environment CPython3.12.0.final.0-64 in 69ms
  creator CPython3Posix(dest=/tmp/ffi-0/setuptools_package_1-cpy, clear=False, 
no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, via=copy, 
app_data_dir=/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/virtualenv)
    added seed packages: pip==23.3
  activators 
BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
----------------------------- Captured stderr call -----------------------------
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f156f17d160>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f156f36c350>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f156f7875f0>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f156f176d50>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f156f17d970>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
ERROR: Could not find a version that satisfies the requirement setuptools (from 
versions: none)
ERROR: No matching distribution found for setuptools
__________________ TestZIntegration.test_setuptools_package_2 __________________

self = <testing.cffi0.test_zintegration.TestZIntegration object at 
0x7faed6576db0>

    def test_setuptools_package_2(self):
      run_setup_and_program("setuptools_package_2", '''
        import snip_setuptools_verify2
        p = snip_setuptools_verify2.C.getpwuid(0)
        assert snip_setuptools_verify2.ffi.string(p.pw_name) == b"root"
        ''')

testing/cffi0/test_zintegration.py:169:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
testing/cffi0/test_zintegration.py:107: in run_setup_and_program
    venv_dir = create_venv(dirname + '-cpy')
testing/cffi0/test_zintegration.py:29: in create_venv
    subprocess.check_call([
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['/tmp/ffi-0/setuptools_package_2-cpy/bin/python', '-m', 'pip', 
'install', 'setuptools', 'wheel', ...],)
kwargs = {}, retcode = 1
cmd = ['/tmp/ffi-0/setuptools_package_2-cpy/bin/python', '-m', 'pip', 
'install', 'setuptools', 'wheel', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
The arguments are the same as for the call function. Example: check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
          raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command 
'['/tmp/ffi-0/setuptools_package_2-cpy/bin/python', '-m', 'pip', 'install', 
'setuptools', 'wheel', '--upgrade']' returned non-zero exit status 1.

/usr/lib/python3.12/subprocess.py:413: CalledProcessError
----------------------------- Captured stdout call -----------------------------
created virtual environment CPython3.12.0.final.0-64 in 71ms
  creator CPython3Posix(dest=/tmp/ffi-0/setuptools_package_2-cpy, clear=False, 
no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, via=copy, 
app_data_dir=/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/virtualenv)
    added seed packages: pip==23.3
  activators 
BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
----------------------------- Captured stderr call -----------------------------
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f3c371e4bf0>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f3c377dad20>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f3c372d34a0>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f3c36ffaed0>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f3c370018b0>: Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
ERROR: Could not find a version that satisfies the requirement setuptools (from 
versions: none)
ERROR: No matching distribution found for setuptools
=============================== warnings summary ===============================
../../../usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293: 1 
warning
testing/cffi0/test_ffi_backend.py: 4 warnings
testing/cffi0/test_unicode_literals.py: 1 warning
testing/cffi0/test_verify.py: 150 warnings
testing/cffi0/test_verify2.py: 15 warnings
testing/cffi0/test_vgen.py: 150 warnings
testing/cffi0/test_vgen2.py: 15 warnings
testing/cffi0/test_zdistutils.py: 20 warnings
testing/cffi1/test_re_python.py: 1 warning
  /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293: 
_DeprecatedConfig: Deprecated config in `setup.cfg`
  !!
********************************************************************************
          The license_file parameter is deprecated, use license_files instead.
This deprecation is overdue, please update your project and remove deprecated
          calls to avoid build errors in the future.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
          
********************************************************************************
!!
    parsed = self.parsers.get(option_name, lambda x: x)(value)

src/c/test_c.py::test_callback_return_type
  /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:78: 
PytestUnraisableExceptionWarning: Exception ignored from cffi callback <function 
test_callback_return_type.<locals>.cb at 0x7faed4a33a60>, trying to convert the 
result back to C: None
Traceback (most recent call last):
    File "/<<PKGBUILDDIR>>/src/c/test_c.py", line 1530, in 
test_callback_return_type
      assert f(max) == 42
  OverflowError: int too big to convert
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))

src/c/test_c.py::test_callback_returning_wchar_t
  /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:78: 
PytestUnraisableExceptionWarning: Exception ignored from cffi callback <function 
test_callback_returning_wchar_t.<locals>.cb at 0x7faed35cc2c0>: None
Traceback (most recent call last):
    File "/<<PKGBUILDDIR>>/src/c/test_c.py", line 1825, in cb
      raise ValueError
  ValueError
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))

src/c/test_c.py::test_cast_with_functionptr
  /<<PKGBUILDDIR>>/src/c/test_c.py:2243: UserWarning: implicit cast from 'char 
*' to a different pointer type: will be forbidden in the future (check that the types are 
as you expect; use an explicit ffi.cast() if they are correct)
    newp(BStructPtr, [cast(BCharP, 0)])

testing/cffi0/test_ffi_backend.py::TestFFI::test_callback_crash
  /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:78: 
PytestUnraisableExceptionWarning: Exception ignored from cffi callback <function 
BackendTests.test_callback_crash.<locals>.cb at 0x7faed3eb96c0>: None
Traceback (most recent call last):
    File "/<<PKGBUILDDIR>>/testing/cffi0/backend_tests.py", line 848, in cb
      raise Exception
  Exception
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))

testing/cffi0/test_ffi_backend.py::TestFFI::test_callback_decorator
  /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:78: 
PytestUnraisableExceptionWarning: Exception ignored from cffi callback <function 
BackendTests.test_callback_decorator.<locals>.cb at 0x7faed44b4c20>, trying to 
convert the result back to C: None
Traceback (most recent call last):
    File "/<<PKGBUILDDIR>>/testing/cffi0/backend_tests.py", line 1390, in 
test_callback_decorator
      assert cb((1 << (sz*8-1)) - 1, -10) == 42
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  OverflowError: int too big to convert
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))

testing/cffi1/test_ffi_obj.py::test_ffi_callback
  /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:78: 
PytestUnraisableExceptionWarning: Exception ignored from cffi callback <function 
test_ffi_callback.<locals>.<lambda> at 0x7faed4423d80>: None
Traceback (most recent call last):
    File "/<<PKGBUILDDIR>>/testing/cffi1/test_ffi_obj.py", line 130, in <lambda>
      assert ffi.callback("int(int)", lambda x: x + "", error=-66)(10) == -66
  TypeError: unsupported operand type(s) for +: 'int' and 'str'
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))

testing/cffi1/test_ffi_obj.py::test_ffi_callback_decorator
  /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:78: 
PytestUnraisableExceptionWarning: Exception ignored from cffi callback <function 
test_ffi_callback_decorator.<locals>.<lambda> at 0x7faed4423ec0>: None
Traceback (most recent call last):
    File "/<<PKGBUILDDIR>>/testing/cffi1/test_ffi_obj.py", line 136, in <lambda>
      assert deco(lambda x: x + "")(10) == -66
  TypeError: unsupported operand type(s) for +: 'int' and 'str'
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))

testing/cffi1/test_new_ffi_1.py::TestNewFFI1::test_callback_crash
  /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:78: 
PytestUnraisableExceptionWarning: Exception ignored from cffi callback <function 
TestNewFFI1.test_callback_crash.<locals>.cb at 0x7faed57967a0>: None
Traceback (most recent call last):
    File "/<<PKGBUILDDIR>>/testing/cffi1/test_new_ffi_1.py", line 863, in cb
      raise Exception
  Exception
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))

testing/cffi1/test_new_ffi_1.py::TestNewFFI1::test_callback_decorator
  /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:78: 
PytestUnraisableExceptionWarning: Exception ignored from cffi callback <function 
TestNewFFI1.test_callback_decorator.<locals>.cb at 0x7faed3b14c20>, trying to 
convert the result back to C: None
Traceback (most recent call last):
    File "/<<PKGBUILDDIR>>/testing/cffi1/test_new_ffi_1.py", line 1341, in 
test_callback_decorator
      assert cb((1 << (sz*8-1)) - 1, -10) == 42
  OverflowError: int too big to convert
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))

testing/cffi1/test_recompiler.py::test_macro_var_callback
  /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:78: 
PytestUnraisableExceptionWarning: Exception ignored from cffi callback <function 
test_macro_var_callback.<locals>.get_my_value at 0x7faed4312160>, trying to 
convert the result back to C: None
Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/_pytest/python_api.py", line 952, in 
raises
      func(*args[1:], **kwargs)
  TypeError: initializer for ctype 'int *' must be a cdata pointer, not str
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED testing/cffi0/test_zintegration.py::TestZIntegration::test_infrastructure
FAILED 
testing/cffi0/test_zintegration.py::TestZIntegration::test_distutils_module
FAILED 
testing/cffi0/test_zintegration.py::TestZIntegration::test_distutils_package_1
FAILED 
testing/cffi0/test_zintegration.py::TestZIntegration::test_distutils_package_2
FAILED 
testing/cffi0/test_zintegration.py::TestZIntegration::test_setuptools_module
FAILED 
testing/cffi0/test_zintegration.py::TestZIntegration::test_setuptools_package_1
FAILED 
testing/cffi0/test_zintegration.py::TestZIntegration::test_setuptools_package_2
= 7 failed, 1944 passed, 89 skipped, 4 xfailed, 367 warnings in 370.06s 
(0:06:10) =
E: pybuild pybuild:395: test: plugin custom failed with: exit code=1: 
python3.12 -m pytest src/c/ testing/


Reply via email to