plone / plone/plone.app.testing

tox broken: "ImportError: No module name `zope.testrunner`

Open
#74 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2
Forks
7
Avg merge
1d 11h
Merged PRs (30d)
3

Description

tox -e py38

WARNING: The easy_install command is deprecated and will be removed in a future version.
Got z3c.objpath 1.2.
Generated script '/home/jugmac00/All/output_plone/plone/plone.app.testing/.tox/py38/bin/test'.
py38 run-test: commands[2] | ls -la /home/jugmac00/All/output_plone/plone/plone.app.testing/.tox/py38/bin
WARNING: test command found but not installed in testenv
  cmd: /bin/ls
  env: /home/jugmac00/All/output_plone/plone/plone.app.testing/.tox/py38
Maybe you forgot to specify a dependency? See also the whitelist_externals envconfig setting.

DEPRECATION WARNING: this will be an error in tox 4 and above!
total 100
drwxr-xr-x  2 jugmac00 jugmac00  4096 Mar  2 15:43 .
drwxr-xr-x 10 jugmac00 jugmac00  4096 Mar  2 15:43 ..
-rw-r--r--  1 jugmac00 jugmac00  2254 Mar  2 15:38 activate
-rw-r--r--  1 jugmac00 jugmac00  1473 Mar  2 15:38 activate.csh
-rw-r--r--  1 jugmac00 jugmac00  3104 Mar  2 15:38 activate.fish
-rw-r--r--  1 jugmac00 jugmac00  1751 Mar  2 15:38 activate.ps1
-rw-r--r--  1 jugmac00 jugmac00  1199 Mar  2 15:38 activate_this.py
-rw-r--r--  1 jugmac00 jugmac00  1195 Mar  2 15:38 activate.xsh
-rwxr-xr-x  1 jugmac00 jugmac00   279 Mar  2 15:38 buildout
-rwxr-xr-x  1 jugmac00 jugmac00   290 Mar  2 15:38 easy_install
-rwxr-xr-x  1 jugmac00 jugmac00   290 Mar  2 15:38 easy_install-3.8
-rwxr-xr-x  1 jugmac00 jugmac00   281 Mar  2 15:38 pip
-rwxr-xr-x  1 jugmac00 jugmac00   281 Mar  2 15:38 pip3
-rwxr-xr-x  1 jugmac00 jugmac00   281 Mar  2 15:38 pip-3.8
-rwxr-xr-x  1 jugmac00 jugmac00   281 Mar  2 15:38 pip3.8
lrwxrwxrwx  1 jugmac00 jugmac00    18 Mar  2 15:38 python -> /usr/bin/python3.8
lrwxrwxrwx  1 jugmac00 jugmac00     6 Mar  2 15:38 python3 -> python
lrwxrwxrwx  1 jugmac00 jugmac00     6 Mar  2 15:38 python3.8 -> python
-rwxr-xr-x  1 jugmac00 jugmac00 25716 Mar  2 15:43 test
-rwxr-xr-x  1 jugmac00 jugmac00   268 Mar  2 15:38 wheel
-rwxr-xr-x  1 jugmac00 jugmac00   268 Mar  2 15:38 wheel3
-rwxr-xr-x  1 jugmac00 jugmac00   268 Mar  2 15:38 wheel-3.8
py38 run-test: commands[3] | coverage run /home/jugmac00/All/output_plone/plone/plone.app.testing/.tox/py38/bin/test --all -vvc
WARNING: test command found but not installed in testenv
  cmd: /home/jugmac00/.local/bin/coverage
  env: /home/jugmac00/All/output_plone/plone/plone.app.testing/.tox/py38
Maybe you forgot to specify a dependency? See also the whitelist_externals envconfig setting.

DEPRECATION WARNING: this will be an error in tox 4 and above!
Traceback (most recent call last):
  File ".tox/py38/bin/test", line 247, in <module>
    import zope.testrunner
ImportError: No module named 'zope.testrunner'
Coverage.py warning: No data was collected. (no-data-collected)
ERROR: InvocationError for command /home/jugmac00/.local/bin/coverage run .tox/py38/bin/test --all -vvc (exited with code 1)
_____________________________________________________________________________ summary _____________________________________________________________________________
ERROR:   py38: commands failed

I noticed the broken tox build as I tried to run all Zope and Plone repos this weekend, see https://jugmac00.github.io/blog/testing-the-tox-4-pre-release-at-scale/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing tox -e py38 and inspect the tox configuration and generated .tox/py38/bin/test entry point. Trace why zope.testrunner is unavailable in the test environment, then verify that the command completes without the ImportError and runs the test suite successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.