zopefoundation / zope.testrunner

This package provides a flexible test runner with layer support.
https://zopetestrunner.readthedocs.io/
Other
2 stars 23 forks source link

zope-testrunner -s fails on py3.11 #145

Closed agroszer closed 11 months ago

agroszer commented 1 year ago

Recording this here now for future reference, will investigate further when I get there

  File "/app/./bin/sbx-test", line 25, in <module>
    sys.exit(zope.testrunner.run([
             ^^^^^^^^^^^^^^^^^^^^^
  File "/app/ve/lib/python3.11/site-packages/zope/testrunner/__init__.py", line 31, in run
    failed = run_internal(defaults, args, script_parts=script_parts, cwd=cwd,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/ve/lib/python3.11/site-packages/zope/testrunner/__init__.py", line 55, in run_internal
    runner.run()
  File "/app/ve/lib/python3.11/site-packages/zope/testrunner/runner.py", line 187, in run
    feature.global_setup()
  File "/app/ve/lib/python3.11/site-packages/zope/testrunner/find.py", line 527, in global_setup
    tests = find_tests(self.runner.options, self.runner.found_suites)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/ve/lib/python3.11/site-packages/zope/testrunner/find.py", line 176, in find_tests
    for suite in found_suites:
  File "/app/ve/lib/python3.11/site-packages/zope/testrunner/find.py", line 197, in find_suites
    for fpath, package in find_test_files(options):
  File "/app/ve/lib/python3.11/site-packages/zope/testrunner/find.py", line 265, in find_test_files
    for f, package in find_test_files_(options):
  File "/app/ve/lib/python3.11/site-packages/zope/testrunner/find.py", line 293, in find_test_files_
    for (p, package) in test_dirs(options, {}):
  File "/app/ve/lib/python3.11/site-packages/zope/testrunner/find.py", line 349, in test_dirs
    for p in p.__path__:
             ^^^^^^^^^^
gforcada commented 11 months ago

It should be working, as for quite a while, the GitHub Actions are already running with Python 3.11 🎉