Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure with Python 3.14 #334

Open
frenzymadness opened this issue Nov 25, 2024 · 0 comments · May be fixed by #335
Open

Test failure with Python 3.14 #334

frenzymadness opened this issue Nov 25, 2024 · 0 comments · May be fixed by #335

Comments

@frenzymadness
Copy link
Contributor

When testing the latest version of zope.interface with the latest available Python 3.14 alpha, the test failed with the following error:

python3 -m unittest discover -vv -s zope/interface -t .
zope.interface (unittest.loader._FailedTest.zope.interface) ... ERROR

======================================================================
ERROR: zope.interface (unittest.loader._FailedTest.zope.interface)
----------------------------------------------------------------------
ImportError: Failed to import test module: zope.interface
Traceback (most recent call last):
  File "/usr/lib64/python3.14/unittest/loader.py", line 429, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib64/python3.14/unittest/loader.py", line 339, in _get_module_from_name
    __import__(name)
    ~~~~~~~~~~^^^^^^
  File "/builddir/build/BUILD/python-zope-interface-7.1.1-build/BUILDROOT/usr/lib64/python3.14/site-packages/zope/interface/__init__.py", line 58, in <module>
    _wire()
    ~~~~~^^
  File "/builddir/build/BUILD/python-zope-interface-7.1.1-build/BUILDROOT/usr/lib64/python3.14/site-packages/zope/interface/interface.py", line 1154, in _wire
    from zope.interface.interfaces import IElement
  File "/builddir/build/BUILD/python-zope-interface-7.1.1-build/BUILDROOT/usr/lib64/python3.14/site-packages/zope/interface/interfaces.py", line 56, in <module>
    class IElement(Interface):
    ...<93 lines>...
            """
  File "/builddir/build/BUILD/python-zope-interface-7.1.1-build/BUILDROOT/usr/lib64/python3.14/site-packages/zope/interface/interface.py", line 794, in __init__
    self.__attrs = self.__compute_attrs(attrs)
                   ~~~~~~~~~~~~~~~~~~~~^^^^^^^
  File "/builddir/build/BUILD/python-zope-interface-7.1.1-build/BUILDROOT/usr/lib64/python3.14/site-packages/zope/interface/interface.py", line 813, in __compute_attrs
    aname: update_value(aname, aval)
           ~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/builddir/build/BUILD/python-zope-interface-7.1.1-build/BUILDROOT/usr/lib64/python3.14/site-packages/zope/interface/interface.py", line 809, in update_value
    raise InvalidInterface("Concrete attribute, " + aname)
zope.interface.exceptions.InvalidInterface: Concrete attribute, __classdictcell__


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

I've tried to look at the __classdictcell__ attribute but it seems it's not new in 3.14.

icemac added a commit that referenced this issue Nov 26, 2024
@icemac icemac linked a pull request Nov 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant