Giter VIP home page Giter VIP logo

Comments (4)

mauritsvanrees avatar mauritsvanrees commented on July 22, 2024

Could be good. I'm not sure how much work this would be. I guess the tests themselves would not need to change, just the way they are detected and setup, so it might be doable.

from zest.releaser.

graingert avatar graingert commented on July 22, 2024

py.test is generally more popular.

from zest.releaser.

reinout avatar reinout commented on July 22, 2024

nose and py.test are pretty much equivalent in popularity, I believe. (And I'm familiar with nose myself... :-) )

from zest.releaser.

mauritsvanrees avatar mauritsvanrees commented on July 22, 2024

We need to switch away from z3c.testsetup if we want to support Python 3.11. When I try it, I get an ImportError:

py311 run-test: commands[0] | zope-testrunner --test-path=. '--tests-pattern=^tests$' -v -c
Test-module import failures:

Module: zest.releaser.tests.test_setup

Traceback (most recent call last):
  File "/Users/maurits/community/zest.releaser/zest/releaser/tests/test_setup.py", line 7, in <module>
    import z3c.testsetup
  File "/Users/maurits/community/zest.releaser/.tox/py311/lib/python3.11/site-packages/z3c/testsetup/__init__.py", line 1, in <module>
    from z3c.testsetup.doctesting import UnitDocTestSetup
  File "/Users/maurits/community/zest.releaser/.tox/py311/lib/python3.11/site-packages/z3c/testsetup/doctesting.py", line 22, in <module>
    from z3c.testsetup.base import BasicTestSetup
  File "/Users/maurits/community/zest.releaser/.tox/py311/lib/python3.11/site-packages/z3c/testsetup/base.py", line 21, in <module>
    from z3c.testsetup.util import get_package
  File "/Users/maurits/community/zest.releaser/.tox/py311/lib/python3.11/site-packages/z3c/testsetup/util.py", line 22, in <module>
    from inspect import getmro, ismethod, isfunction, getargspec
ImportError: cannot import name 'getargspec' from 'inspect' (/Users/maurits/.pyenv/versions/3.11.0/lib/python3.11/inspect.py)

I am trying out how hard it is to get rid of it. It is only about test discovery and setup/teardown, not about which test running. So we should be able to stay with zope.testrunner, although this is up for replacement by pytest, which is more popular than nose these days as far as I know.

from zest.releaser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.