zope.interface icon indicating copy to clipboard operation
zope.interface copied to clipboard

Test failures with Python 3.13.0b1

Open mgorny opened this issue 1 month ago • 3 comments

BUG/PROBLEM REPORT / FEATURE REQUEST

What I did:

  1. Installed Python 3.13.0b1.
  2. tox -e py313

What I expect to happen:

Tests passing :-).

What actually happened:

$ tox -e py313
py313: recreate env because python changed version_info=[3, 13, 0, 'alpha', 6]->[3, 13, 0, 'beta', 1]
py313: remove tox env folder /tmp/zope.interface/.tox/py313
py313: install_deps> python -I -m pip install --pre Sphinx --pre
.pkg-cpython313: recreate env because python changed version_info=[3, 13, 0, 'alpha', 6]->[3, 13, 0, 'beta', 1]
.pkg-cpython313: remove tox env folder /tmp/zope.interface/.tox/.pkg-cpython313
.pkg-cpython313: install_requires> python -I -m pip install 'setuptools>=40.8.0' wheel
.pkg-cpython313: _optional_hooks> python /usr/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg-cpython313: get_requires_for_build_editable> python /usr/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg-cpython313: install_requires_for_build_editable> python -I -m pip install wheel
.pkg-cpython313: build_editable> python /usr/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
py313: install_package_deps> python -I -m pip install --pre Sphinx 'coverage>=5.0.3' repoze.sphinx.autointerface setuptools sphinx-rtd-theme zope.event zope.testing --pre
py313: install_package> python -I -m pip install --pre --force-reinstall --no-deps /tmp/zope.interface/.tox/.tmp/package/2/zope.interface-6.4.dev0-0.editable-cp313-cp313-linux_x86_64.whl --pre
py313: commands[0]> coverage run -p -m unittest discover -s src
E
======================================================================
ERROR: zope.interface (unittest.loader._FailedTest.zope.interface)
----------------------------------------------------------------------
ImportError: Failed to import test module: zope.interface
Traceback (most recent call last):
  File "/usr/lib/python3.13/unittest/loader.py", line 429, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python3.13/unittest/loader.py", line 339, in _get_module_from_name
    __import__(name)
    ~~~~~~~~~~^^^^^^
  File "/tmp/zope.interface/src/zope/interface/__init__.py", line 58, in <module>
    _wire()
    ~~~~~^^
  File "/tmp/zope.interface/src/zope/interface/interface.py", line 1117, in _wire
    from zope.interface.interfaces import IElement
  File "/tmp/zope.interface/src/zope/interface/interfaces.py", line 55, in <module>
    class IElement(Interface):
    ...<91 lines>...
            """
  File "/tmp/zope.interface/src/zope/interface/interface.py", line 774, in __init__
    self.__attrs = self.__compute_attrs(attrs)
                   ~~~~~~~~~~~~~~~~~~~~^^^^^^^
  File "/tmp/zope.interface/src/zope/interface/interface.py", line 793, in __compute_attrs
    aname: update_value(aname, aval)
           ~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/tmp/zope.interface/src/zope/interface/interface.py", line 789, in update_value
    raise InvalidInterface("Concrete attribute, " + aname)
zope.interface.exceptions.InvalidInterface: Concrete attribute, __firstlineno__


----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)
py313: exit 1 (0.16 seconds) /tmp/zope.interface> coverage run -p -m unittest discover -s src pid=282042
  py313: FAIL code 1 (12.37=setup[12.21]+cmd[0.16] seconds)
  evaluation failed :( (12.96 seconds)

What version of Python and Zope/Addons I am using:

Gentoo Linux amd64 CPython 3.13.0b1 zope.interface 78fdf3d0593dd8c937541959238cb0fe1a303a99

mgorny avatar May 08 '24 17:05 mgorny