Build: world
Name: python-pytest-xdist-3.6.1-1
maintainer: artist
email: artist at artixlinux.org
[1]https://orion.artixlinux.org/job/packages/job/python-pytest-xdist/jo
b/master/12/
References
1. https://orion.artixlinux.org/job/packages/job/python-pytest-xdist/job/master/12/
-------------- next part --------------
Push event to branch master
Looking up repository packages/python-pytest-xdist
Querying the current revision of branch master...
Current revision of branch master is f9c07557214d69fefda553976b649327f717a17c
Obtained .artixlinux/Jenkinsfile from f9c07557214d69fefda553976b649327f717a17c
Loading library artix-ci at orion
Attempting to resolve orion from remote references...
> git --version # timeout=10
> git --version # 'git version 2.47.0'
using GIT_ASKPASS to set credentials jenkins gitea token
> git ls-remote -- https://gitea.artixlinux.org/artix/pipeline-libs.git # timeout=10
Found match: refs/heads/orion revision 880bd3745db54fd7d2bc517b1ce67190bee429ae
Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
using credential jenkins-gotea-token
> git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/kages_python-pytest-xdist_master at libs/d1b6e538991d6cf27c1f72e8cf4d6e290b22a9c93094b0e97e3a05b8d58db898/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://gitea.artixlinux.org/artix/pipeline-libs.git # timeout=10
Fetching without tags
Fetching upstream changes from https://gitea.artixlinux.org/artix/pipeline-libs.git
> git --version # timeout=10
> git --version # 'git version 2.47.0'
using GIT_ASKPASS to set credentials jenkins gitea token
> git fetch --no-tags --force --progress -- https://gitea.artixlinux.org/artix/pipeline-libs.git +refs/heads/orion:refs/remotes/origin/orion # timeout=10
Checking out Revision 880bd3745db54fd7d2bc517b1ce67190bee429ae (orion)
> git config core.sparsecheckout # timeout=10
> git checkout -f 880bd3745db54fd7d2bc517b1ce67190bee429ae # timeout=10
Commit message: "Merge pull request 'fix check args' (#69) from master into orion"
[Gitea] Notifying branch build status: PENDING Build started...
[Gitea] Notified
[Pipeline] Start of Pipeline
[Pipeline] catchError
[Pipeline] {
[Pipeline] libraryResource
[Pipeline] readYaml
[Pipeline] }
[Pipeline] // catchError
[Pipeline] node
Still waiting to schedule task
Waiting for next available executor on ‘Jenkins’
Running on Jenkins in /var/lib/jenkins/workspace/kages_python-pytest-xdist_master
[Pipeline] {
[Pipeline] timestamps
[Pipeline] {
[Pipeline] ansiColor
[Pipeline] {
[2024-11-29T22:11:50.810Z]
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] checkout
[2024-11-29T22:11:50.861Z] The recommended git tool is: NONE
[2024-11-29T22:11:50.861Z] using credential jenkins-gotea-token
[2024-11-29T22:11:51.041Z] > git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/kages_python-pytest-xdist_master/.git # timeout=10
[2024-11-29T22:11:51.046Z] Fetching changes from the remote Git repository
[2024-11-29T22:11:51.047Z] > git config remote.origin.url https://gitea.artixlinux.org/packages/python-pytest-xdist.git # timeout=10
[2024-11-29T22:11:51.053Z] Cleaning workspace
[2024-11-29T22:11:51.053Z] > git rev-parse --verify HEAD # timeout=10
[2024-11-29T22:11:51.060Z] Resetting working tree
[2024-11-29T22:11:51.060Z] > git reset --hard # timeout=10
[2024-11-29T22:11:51.068Z] > git clean -fdx # timeout=10
[2024-11-29T22:11:51.073Z] Fetching without tags
[2024-11-29T22:11:51.073Z] Fetching upstream changes from https://gitea.artixlinux.org/packages/python-pytest-xdist.git
[2024-11-29T22:11:51.073Z] > git --version # timeout=10
[2024-11-29T22:11:51.077Z] > git --version # 'git version 2.47.0'
[2024-11-29T22:11:51.077Z] using GIT_ASKPASS to set credentials jenkins gitea token
[2024-11-29T22:11:51.081Z] > git fetch --no-tags --force --progress -- https://gitea.artixlinux.org/packages/python-pytest-xdist.git +refs/heads/master:refs/remotes/origin/master # timeout=10
[2024-11-29T22:11:51.264Z] Checking out Revision f9c07557214d69fefda553976b649327f717a17c (master)
[2024-11-29T22:11:51.264Z] > git config core.sparsecheckout # timeout=10
[2024-11-29T22:11:51.270Z] > git checkout -f f9c07557214d69fefda553976b649327f717a17c # timeout=10
[2024-11-29T22:11:51.282Z] Commit message: "[world] 'python-pytest-xdist-3.6.1-1' add"
[2024-11-29T22:11:51.282Z] > git rev-list --no-walk 94d589b8d9c53ffc2f6a9a901e82361f1f8ca6a1 # timeout=10
[2024-11-29T22:11:51.299Z] [Gitea] Notifying branch build status: PENDING Build started...
[2024-11-29T22:11:51.454Z] [Gitea] Notified
[Pipeline] readYaml
[Pipeline] sh
[2024-11-29T22:11:51.724Z] + git show -s --format=%an f9c07557214d69fefda553976b649327f717a17c
[Pipeline] sh
[2024-11-29T22:11:51.982Z] + git show -s --format=%ae f9c07557214d69fefda553976b649327f717a17c
[Pipeline] echo
[2024-11-29T22:11:52.005Z] addRepo=world
[Pipeline] echo
[2024-11-29T22:11:52.010Z] removeRepo=null
[Pipeline] echo
[2024-11-29T22:11:52.015Z] triggersBuild=true
[Pipeline] echo
[2024-11-29T22:11:52.021Z] triggersRebuild=false
[Pipeline] echo
[2024-11-29T22:11:52.026Z] triggersRepoAdd=true
[Pipeline] echo
[2024-11-29T22:11:52.031Z] triggersRepoRemove=false
[Pipeline] echo
[2024-11-29T22:11:52.036Z] triggersNoCheck=false
[Pipeline] echo
[2024-11-29T22:11:52.042Z] name=artist
[Pipeline] echo
[2024-11-29T22:11:52.047Z] email=artist at artixlinux.org
[Pipeline] echo
[2024-11-29T22:11:52.052Z] credentialsId=BUILDBOT_GPGP
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] catchError
[Pipeline] {
[Pipeline] sh
[2024-11-29T22:11:52.370Z] + buildpkg -n -a x86_64 -d world -e 'artist <artist at artixlinux.org>'
[2024-11-29T22:11:56.492Z] :: Synchronizing package databases...
[2024-11-29T22:11:56.492Z] system downloading...
[2024-11-29T22:11:56.492Z] world downloading...
[2024-11-29T22:11:56.492Z] :: Starting full system upgrade...
[2024-11-29T22:11:56.492Z] there is nothing to do
[2024-11-29T22:11:58.975Z] ==> Building in chroot for [world] (x86_64)...
[2024-11-29T22:11:59.525Z] ==> Synchronizing chroot copy [/build/buildpkg/world-x86_64/root] -> [jenkins]...done
[2024-11-29T22:12:00.868Z] ==> Making package: python-pytest-xdist 3.6.1-1 (Fri Nov 29 23:12:00 2024)
[2024-11-29T22:12:00.868Z] ==> Retrieving sources...
[2024-11-29T22:12:00.868Z] -> Updating pytest-xdist git repo...
[2024-11-29T22:12:01.419Z] From https://github.com/pytest-dev/pytest-xdist
[2024-11-29T22:12:01.419Z] 26e3b35..b4eb2ca master -> master
[2024-11-29T22:12:01.419Z] + bd69e4a...088f1af refs/pull/1118/merge -> refs/pull/1118/merge (forced update)
[2024-11-29T22:12:01.419Z] + f5a4f17...acde3d8 refs/pull/1119/merge -> refs/pull/1119/merge (forced update)
[2024-11-29T22:12:01.419Z] * [new ref] refs/pull/1158/head -> refs/pull/1158/head
[2024-11-29T22:12:01.419Z] ==> Validating source files with sha512sums...
[2024-11-29T22:12:01.419Z] pytest-xdist ... Passed
[2024-11-29T22:12:07.899Z] ==> Making package: python-pytest-xdist 3.6.1-1 (Fri Nov 29 22:12:07 2024)
[2024-11-29T22:12:07.899Z] ==> Checking runtime dependencies...
[2024-11-29T22:12:07.899Z] ==> Installing missing dependencies...
[2024-11-29T22:12:07.899Z] resolving dependencies...
[2024-11-29T22:12:07.899Z] looking for conflicting packages...
[2024-11-29T22:12:07.899Z]
[2024-11-29T22:12:07.899Z] Package (8) New Version Net Change
[2024-11-29T22:12:07.899Z]
[2024-11-29T22:12:07.899Z] system/expat 2.6.4-1 0.42 MiB
[2024-11-29T22:12:07.899Z] world/mpdecimal 4.0.0-2 0.32 MiB
[2024-11-29T22:12:07.899Z] system/python 3.12.7-1 70.04 MiB
[2024-11-29T22:12:07.899Z] world/python-iniconfig 2.0.0-5 0.04 MiB
[2024-11-29T22:12:07.899Z] world/python-packaging 24.2-1 0.66 MiB
[2024-11-29T22:12:07.899Z] world/python-pluggy 1.5.0-1 0.20 MiB
[2024-11-29T22:12:07.899Z] world/python-execnet 2.0.2-3 0.42 MiB
[2024-11-29T22:12:07.899Z] world/python-pytest 1:8.3.3-1 3.90 MiB
[2024-11-29T22:12:07.899Z]
[2024-11-29T22:12:07.899Z] Total Installed Size: 76.00 MiB
[2024-11-29T22:12:07.899Z]
[2024-11-29T22:12:07.899Z] :: Proceed with installation? [Y/n]
[2024-11-29T22:12:07.899Z] checking keyring...
[2024-11-29T22:12:07.899Z] checking package integrity...
[2024-11-29T22:12:08.150Z] loading package files...
[2024-11-29T22:12:08.150Z] checking for file conflicts...
[2024-11-29T22:12:08.150Z] :: Processing package changes...
[2024-11-29T22:12:08.150Z] installing expat...
[2024-11-29T22:12:08.150Z] installing mpdecimal...
[2024-11-29T22:12:08.150Z] installing python...
[2024-11-29T22:12:08.400Z] Optional dependencies for python
[2024-11-29T22:12:08.400Z] python-setuptools: for building Python packages using tooling that is usually bundled with Python
[2024-11-29T22:12:08.400Z] python-pip: for installing Python packages using tooling that is usually bundled with Python
[2024-11-29T22:12:08.400Z] python-pipx: for installing Python software not packaged on Arch Linux
[2024-11-29T22:12:08.400Z] sqlite: for a default database integration [installed]
[2024-11-29T22:12:08.400Z] xz: for lzma [installed]
[2024-11-29T22:12:08.400Z] tk: for tkinter
[2024-11-29T22:12:08.400Z] installing python-execnet...
[2024-11-29T22:12:08.400Z] installing python-iniconfig...
[2024-11-29T22:12:08.400Z] installing python-packaging...
[2024-11-29T22:12:08.400Z] installing python-pluggy...
[2024-11-29T22:12:08.400Z] installing python-pytest...
[2024-11-29T22:12:08.650Z] ==> Checking buildtime dependencies...
[2024-11-29T22:12:08.650Z] ==> Installing missing dependencies...
[2024-11-29T22:12:08.901Z] resolving dependencies...
[2024-11-29T22:12:08.901Z] looking for conflicting packages...
[2024-11-29T22:12:08.901Z]
[2024-11-29T22:12:08.901Z] Package (19) New Version Net Change
[2024-11-29T22:12:08.901Z]
[2024-11-29T22:12:08.901Z] world/perl-error 0.17029-7 0.04 MiB
[2024-11-29T22:12:08.901Z] world/perl-mailtools 2.21-9 0.10 MiB
[2024-11-29T22:12:08.901Z] world/perl-timedate 2.33-7 0.08 MiB
[2024-11-29T22:12:08.901Z] world/python-autocommand 2.2.2-6 0.08 MiB
[2024-11-29T22:12:08.901Z] world/python-jaraco.collections 5.0.1-1 0.10 MiB
[2024-11-29T22:12:08.901Z] world/python-jaraco.context 5.3.0-1 0.04 MiB
[2024-11-29T22:12:08.901Z] world/python-jaraco.functools 4.0.2-1 0.07 MiB
[2024-11-29T22:12:08.901Z] world/python-jaraco.text 4.0.0-1 0.08 MiB
[2024-11-29T22:12:08.901Z] world/python-more-itertools 10.3.0-1 0.63 MiB
[2024-11-29T22:12:08.901Z] world/python-platformdirs 4.3.6-1 0.24 MiB
[2024-11-29T22:12:08.901Z] world/python-pyproject-hooks 1.2.0-1 0.10 MiB
[2024-11-29T22:12:08.901Z] world/python-setuptools 1:75.2.0-2 7.99 MiB
[2024-11-29T22:12:08.901Z] world/git 2.47.1-1 28.27 MiB
[2024-11-29T22:12:08.901Z] world/python-build 1.2.2-1 0.20 MiB
[2024-11-29T22:12:08.901Z] world/python-filelock 3.16.1-1.1 0.13 MiB
[2024-11-29T22:12:08.901Z] world/python-installer 0.7.0-8 0.18 MiB
[2024-11-29T22:12:08.901Z] world/python-psutil 6.1.0-1 1.18 MiB
[2024-11-29T22:12:08.901Z] world/python-setuptools-scm 8.1.0-1 0.36 MiB
[2024-11-29T22:12:08.901Z] world/python-wheel 0.45.0-1 0.28 MiB
[2024-11-29T22:12:08.901Z]
[2024-11-29T22:12:08.901Z] Total Installed Size: 40.16 MiB
[2024-11-29T22:12:08.901Z]
[2024-11-29T22:12:08.901Z] :: Proceed with installation? [Y/n]
[2024-11-29T22:12:08.901Z] checking keyring...
[2024-11-29T22:12:08.901Z] checking package integrity...
[2024-11-29T22:12:09.812Z] loading package files...
[2024-11-29T22:12:09.812Z] checking for file conflicts...
[2024-11-29T22:12:09.812Z] :: Processing package changes...
[2024-11-29T22:12:09.812Z] installing perl-error...
[2024-11-29T22:12:09.812Z] installing perl-timedate...
[2024-11-29T22:12:09.812Z] installing perl-mailtools...
[2024-11-29T22:12:09.812Z] installing git...
[2024-11-29T22:12:09.812Z] Optional dependencies for git
[2024-11-29T22:12:09.812Z] tk: gitk and git gui
[2024-11-29T22:12:09.812Z] openssh: ssh transport and crypto
[2024-11-29T22:12:09.812Z] perl-libwww: git svn
[2024-11-29T22:12:09.812Z] perl-term-readkey: git svn and interactive.singlekey setting
[2024-11-29T22:12:09.812Z] perl-io-socket-ssl: git send-email TLS support
[2024-11-29T22:12:09.812Z] perl-authen-sasl: git send-email TLS support
[2024-11-29T22:12:09.812Z] perl-mediawiki-api: git mediawiki support
[2024-11-29T22:12:09.812Z] perl-datetime-format-iso8601: git mediawiki support
[2024-11-29T22:12:09.812Z] perl-lwp-protocol-https: git mediawiki https support
[2024-11-29T22:12:09.812Z] perl-cgi: gitweb (web interface) support
[2024-11-29T22:12:09.812Z] python: git svn & git p4 [installed]
[2024-11-29T22:12:09.812Z] subversion: git svn
[2024-11-29T22:12:09.812Z] org.freedesktop.secrets: keyring credential helper
[2024-11-29T22:12:09.812Z] libsecret: libsecret credential helper [installed]
[2024-11-29T22:12:09.812Z] installing python-pyproject-hooks...
[2024-11-29T22:12:09.812Z] installing python-build...
[2024-11-29T22:12:09.812Z] Optional dependencies for python-build
[2024-11-29T22:12:09.812Z] python-pip: to use as the Python package installer (default)
[2024-11-29T22:12:09.812Z] python-uv: to use as the Python package installer
[2024-11-29T22:12:09.812Z] python-virtualenv: to use virtualenv for build isolation
[2024-11-29T22:12:09.812Z] installing python-installer...
[2024-11-29T22:12:09.812Z] installing python-more-itertools...
[2024-11-29T22:12:09.812Z] installing python-jaraco.functools...
[2024-11-29T22:12:09.812Z] installing python-jaraco.context...
[2024-11-29T22:12:09.812Z] installing python-autocommand...
[2024-11-29T22:12:10.062Z] installing python-jaraco.text...
[2024-11-29T22:12:10.062Z] Optional dependencies for python-jaraco.text
[2024-11-29T22:12:10.062Z] python-inflect: for show-newlines script
[2024-11-29T22:12:10.062Z] installing python-jaraco.collections...
[2024-11-29T22:12:10.062Z] installing python-platformdirs...
[2024-11-29T22:12:10.062Z] installing python-wheel...
[2024-11-29T22:12:10.062Z] Optional dependencies for python-wheel
[2024-11-29T22:12:10.062Z] python-keyring: for wheel.signatures
[2024-11-29T22:12:10.062Z] python-xdg: for wheel.signatures
[2024-11-29T22:12:10.062Z] python-setuptools: for legacy bdist_wheel subcommand [pending]
[2024-11-29T22:12:10.062Z] installing python-setuptools...
[2024-11-29T22:12:10.062Z] installing python-setuptools-scm...
[2024-11-29T22:12:10.062Z] installing python-filelock...
[2024-11-29T22:12:10.062Z] installing python-psutil...
[2024-11-29T22:12:10.062Z] :: Running post-transaction hooks...
[2024-11-29T22:12:10.062Z] (1/2) Creating system user accounts...
[2024-11-29T22:12:10.062Z] Creating group 'git' with GID 979.
[2024-11-29T22:12:10.062Z] Creating user 'git' (git daemon user) with UID 979 and GID 979.
[2024-11-29T22:12:10.062Z] (2/2) Warn about old perl modules
[2024-11-29T22:12:10.312Z] ==> Retrieving sources...
[2024-11-29T22:12:10.312Z] ==> WARNING: Skipping all source file integrity checks.
[2024-11-29T22:12:10.313Z] ==> Extracting sources...
[2024-11-29T22:12:10.313Z] -> Creating working copy of pytest-xdist git repo...
[2024-11-29T22:12:10.313Z] Cloning into 'pytest-xdist'...
[2024-11-29T22:12:10.313Z] done.
[2024-11-29T22:12:10.313Z] Switched to a new branch 'makepkg'
[2024-11-29T22:12:10.313Z] ==> Starting build()...
[2024-11-29T22:12:10.563Z] * Getting build dependencies for wheel...
[2024-11-29T22:12:10.813Z] running egg_info
[2024-11-29T22:12:10.813Z] creating src/pytest_xdist.egg-info
[2024-11-29T22:12:10.813Z] writing src/pytest_xdist.egg-info/PKG-INFO
[2024-11-29T22:12:10.813Z] writing dependency_links to src/pytest_xdist.egg-info/dependency_links.txt
[2024-11-29T22:12:10.813Z] writing entry points to src/pytest_xdist.egg-info/entry_points.txt
[2024-11-29T22:12:10.813Z] writing requirements to src/pytest_xdist.egg-info/requires.txt
[2024-11-29T22:12:10.813Z] writing top-level names to src/pytest_xdist.egg-info/top_level.txt
[2024-11-29T22:12:10.813Z] writing manifest file 'src/pytest_xdist.egg-info/SOURCES.txt'
[2024-11-29T22:12:10.813Z] reading manifest template 'MANIFEST.in'
[2024-11-29T22:12:10.813Z] warning: no previously-included files found matching '.appveyor.yml'
[2024-11-29T22:12:10.813Z] warning: no previously-included files found matching '.travis.yml'
[2024-11-29T22:12:10.813Z] adding license file 'LICENSE'
[2024-11-29T22:12:10.813Z] writing manifest file 'src/pytest_xdist.egg-info/SOURCES.txt'
[2024-11-29T22:12:11.063Z] * Building wheel...
[2024-11-29T22:12:11.314Z] running bdist_wheel
[2024-11-29T22:12:11.314Z] running build
[2024-11-29T22:12:11.314Z] running build_py
[2024-11-29T22:12:11.314Z] creating build/lib/xdist
[2024-11-29T22:12:11.314Z] copying src/xdist/__init__.py -> build/lib/xdist
[2024-11-29T22:12:11.314Z] copying src/xdist/remote.py -> build/lib/xdist
[2024-11-29T22:12:11.314Z] copying src/xdist/workermanage.py -> build/lib/xdist
[2024-11-29T22:12:11.314Z] copying src/xdist/_path.py -> build/lib/xdist
[2024-11-29T22:12:11.314Z] copying src/xdist/_version.py -> build/lib/xdist
[2024-11-29T22:12:11.314Z] copying src/xdist/report.py -> build/lib/xdist
[2024-11-29T22:12:11.314Z] copying src/xdist/plugin.py -> build/lib/xdist
[2024-11-29T22:12:11.314Z] copying src/xdist/newhooks.py -> build/lib/xdist
[2024-11-29T22:12:11.314Z] copying src/xdist/dsession.py -> build/lib/xdist
[2024-11-29T22:12:11.314Z] copying src/xdist/looponfail.py -> build/lib/xdist
[2024-11-29T22:12:11.314Z] creating build/lib/xdist/scheduler
[2024-11-29T22:12:11.314Z] copying src/xdist/scheduler/__init__.py -> build/lib/xdist/scheduler
[2024-11-29T22:12:11.314Z] copying src/xdist/scheduler/loadscope.py -> build/lib/xdist/scheduler
[2024-11-29T22:12:11.314Z] copying src/xdist/scheduler/worksteal.py -> build/lib/xdist/scheduler
[2024-11-29T22:12:11.314Z] copying src/xdist/scheduler/load.py -> build/lib/xdist/scheduler
[2024-11-29T22:12:11.314Z] copying src/xdist/scheduler/each.py -> build/lib/xdist/scheduler
[2024-11-29T22:12:11.314Z] copying src/xdist/scheduler/loadgroup.py -> build/lib/xdist/scheduler
[2024-11-29T22:12:11.314Z] copying src/xdist/scheduler/loadfile.py -> build/lib/xdist/scheduler
[2024-11-29T22:12:11.314Z] copying src/xdist/scheduler/protocol.py -> build/lib/xdist/scheduler
[2024-11-29T22:12:11.314Z] installing to build/bdist.linux-x86_64/wheel
[2024-11-29T22:12:11.314Z] running install
[2024-11-29T22:12:11.314Z] running install_lib
[2024-11-29T22:12:11.314Z] creating build/bdist.linux-x86_64/wheel
[2024-11-29T22:12:11.314Z] creating build/bdist.linux-x86_64/wheel/xdist
[2024-11-29T22:12:11.314Z] copying build/lib/xdist/__init__.py -> build/bdist.linux-x86_64/wheel/./xdist
[2024-11-29T22:12:11.314Z] copying build/lib/xdist/remote.py -> build/bdist.linux-x86_64/wheel/./xdist
[2024-11-29T22:12:11.314Z] copying build/lib/xdist/workermanage.py -> build/bdist.linux-x86_64/wheel/./xdist
[2024-11-29T22:12:11.314Z] copying build/lib/xdist/_path.py -> build/bdist.linux-x86_64/wheel/./xdist
[2024-11-29T22:12:11.314Z] copying build/lib/xdist/_version.py -> build/bdist.linux-x86_64/wheel/./xdist
[2024-11-29T22:12:11.314Z] copying build/lib/xdist/report.py -> build/bdist.linux-x86_64/wheel/./xdist
[2024-11-29T22:12:11.314Z] creating build/bdist.linux-x86_64/wheel/xdist/scheduler
[2024-11-29T22:12:11.314Z] copying build/lib/xdist/scheduler/__init__.py -> build/bdist.linux-x86_64/wheel/./xdist/scheduler
[2024-11-29T22:12:11.314Z] copying build/lib/xdist/scheduler/loadscope.py -> build/bdist.linux-x86_64/wheel/./xdist/scheduler
[2024-11-29T22:12:11.314Z] copying build/lib/xdist/scheduler/worksteal.py -> build/bdist.linux-x86_64/wheel/./xdist/scheduler
[2024-11-29T22:12:11.314Z] copying build/lib/xdist/scheduler/load.py -> build/bdist.linux-x86_64/wheel/./xdist/scheduler
[2024-11-29T22:12:11.314Z] copying build/lib/xdist/scheduler/each.py -> build/bdist.linux-x86_64/wheel/./xdist/scheduler
[2024-11-29T22:12:11.314Z] copying build/lib/xdist/scheduler/loadgroup.py -> build/bdist.linux-x86_64/wheel/./xdist/scheduler
[2024-11-29T22:12:11.314Z] copying build/lib/xdist/scheduler/loadfile.py -> build/bdist.linux-x86_64/wheel/./xdist/scheduler
[2024-11-29T22:12:11.314Z] copying build/lib/xdist/scheduler/protocol.py -> build/bdist.linux-x86_64/wheel/./xdist/scheduler
[2024-11-29T22:12:11.314Z] copying build/lib/xdist/plugin.py -> build/bdist.linux-x86_64/wheel/./xdist
[2024-11-29T22:12:11.314Z] copying build/lib/xdist/newhooks.py -> build/bdist.linux-x86_64/wheel/./xdist
[2024-11-29T22:12:11.314Z] copying build/lib/xdist/dsession.py -> build/bdist.linux-x86_64/wheel/./xdist
[2024-11-29T22:12:11.314Z] copying build/lib/xdist/looponfail.py -> build/bdist.linux-x86_64/wheel/./xdist
[2024-11-29T22:12:11.314Z] running install_egg_info
[2024-11-29T22:12:11.314Z] running egg_info
[2024-11-29T22:12:11.314Z] writing src/pytest_xdist.egg-info/PKG-INFO
[2024-11-29T22:12:11.314Z] writing dependency_links to src/pytest_xdist.egg-info/dependency_links.txt
[2024-11-29T22:12:11.314Z] writing entry points to src/pytest_xdist.egg-info/entry_points.txt
[2024-11-29T22:12:11.314Z] writing requirements to src/pytest_xdist.egg-info/requires.txt
[2024-11-29T22:12:11.314Z] writing top-level names to src/pytest_xdist.egg-info/top_level.txt
[2024-11-29T22:12:11.314Z] reading manifest template 'MANIFEST.in'
[2024-11-29T22:12:11.314Z] warning: no previously-included files found matching '.appveyor.yml'
[2024-11-29T22:12:11.314Z] warning: no previously-included files found matching '.travis.yml'
[2024-11-29T22:12:11.314Z] adding license file 'LICENSE'
[2024-11-29T22:12:11.314Z] writing manifest file 'src/pytest_xdist.egg-info/SOURCES.txt'
[2024-11-29T22:12:11.314Z] Copying src/pytest_xdist.egg-info to build/bdist.linux-x86_64/wheel/./pytest_xdist-3.6.1-py3.12.egg-info
[2024-11-29T22:12:11.314Z] running install_scripts
[2024-11-29T22:12:11.314Z] creating build/bdist.linux-x86_64/wheel/pytest_xdist-3.6.1.dist-info/WHEEL
[2024-11-29T22:12:11.314Z] creating '/build/python-pytest-xdist/src/pytest-xdist/dist/.tmp-eao4ya06/pytest_xdist-3.6.1-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
[2024-11-29T22:12:11.314Z] adding 'xdist/__init__.py'
[2024-11-29T22:12:11.314Z] adding 'xdist/_path.py'
[2024-11-29T22:12:11.314Z] adding 'xdist/_version.py'
[2024-11-29T22:12:11.314Z] adding 'xdist/dsession.py'
[2024-11-29T22:12:11.314Z] adding 'xdist/looponfail.py'
[2024-11-29T22:12:11.314Z] adding 'xdist/newhooks.py'
[2024-11-29T22:12:11.314Z] adding 'xdist/plugin.py'
[2024-11-29T22:12:11.314Z] adding 'xdist/remote.py'
[2024-11-29T22:12:11.314Z] adding 'xdist/report.py'
[2024-11-29T22:12:11.314Z] adding 'xdist/workermanage.py'
[2024-11-29T22:12:11.314Z] adding 'xdist/scheduler/__init__.py'
[2024-11-29T22:12:11.314Z] adding 'xdist/scheduler/each.py'
[2024-11-29T22:12:11.314Z] adding 'xdist/scheduler/load.py'
[2024-11-29T22:12:11.314Z] adding 'xdist/scheduler/loadfile.py'
[2024-11-29T22:12:11.314Z] adding 'xdist/scheduler/loadgroup.py'
[2024-11-29T22:12:11.314Z] adding 'xdist/scheduler/loadscope.py'
[2024-11-29T22:12:11.314Z] adding 'xdist/scheduler/protocol.py'
[2024-11-29T22:12:11.314Z] adding 'xdist/scheduler/worksteal.py'
[2024-11-29T22:12:11.314Z] adding 'pytest_xdist-3.6.1.dist-info/LICENSE'
[2024-11-29T22:12:11.314Z] adding 'pytest_xdist-3.6.1.dist-info/METADATA'
[2024-11-29T22:12:11.314Z] adding 'pytest_xdist-3.6.1.dist-info/WHEEL'
[2024-11-29T22:12:11.314Z] adding 'pytest_xdist-3.6.1.dist-info/entry_points.txt'
[2024-11-29T22:12:11.314Z] adding 'pytest_xdist-3.6.1.dist-info/top_level.txt'
[2024-11-29T22:12:11.314Z] adding 'pytest_xdist-3.6.1.dist-info/RECORD'
[2024-11-29T22:12:11.314Z] removing build/bdist.linux-x86_64/wheel
[2024-11-29T22:12:11.564Z] Successfully built pytest_xdist-3.6.1-py3-none-any.whl
[2024-11-29T22:12:11.564Z] ==> Starting check()...
[2024-11-29T22:12:12.475Z] ============================= test session starts ==============================
[2024-11-29T22:12:12.475Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:12.475Z] rootdir: /build/python-pytest-xdist/src/pytest-xdist
[2024-11-29T22:12:12.475Z] configfile: tox.ini
[2024-11-29T22:12:12.475Z] testpaths: testing
[2024-11-29T22:12:12.475Z] plugins: xdist-3.6.1
[2024-11-29T22:12:12.475Z] collected 207 items
[2024-11-29T22:12:12.475Z]
[2024-11-29T22:12:16.579Z] testing/acceptance_test.py FFF.F.FFFFFFFFs.FxFFFFFFFxxFFFFFFFFFFFF.Fs.F. [ 21%]
[2024-11-29T22:12:20.883Z] F.FFFFxFFFF.F.FFFFFFFFFFFFFFFFFFFFF..FFFFFFFFFFFF...F. [ 47%]
[2024-11-29T22:12:21.384Z] testing/test_dsession.py .................x...x............ [ 64%]
[2024-11-29T22:12:23.887Z] testing/test_looponfail.py .....FFFFFFFxFss [ 71%]
[2024-11-29T22:12:24.137Z] testing/test_newhooks.py FFFF [ 73%]
[2024-11-29T22:12:25.639Z] testing/test_plugin.py ............FFFFFFF [ 83%]
[2024-11-29T22:12:27.641Z] testing/test_remote.py FFFFxFFFFFFFF [ 89%]
[2024-11-29T22:12:29.143Z] testing/test_workermanage.py FFFFFF.FxFFFFFFFs...x. [100%]
[2024-11-29T22:12:29.143Z]
[2024-11-29T22:12:29.143Z] =================================== FAILURES ===================================
[2024-11-29T22:12:29.143Z] ________________________ TestDistribution.test_n1_pass _________________________
[2024-11-29T22:12:29.143Z]
[2024-11-29T22:12:29.143Z] self = <acceptance_test.TestDistribution object at 0x7a3192527650>
[2024-11-29T22:12:29.143Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_n1_pass0')>
[2024-11-29T22:12:29.143Z]
[2024-11-29T22:12:29.143Z] def test_n1_pass(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.143Z] p1 = pytester.makepyfile(
[2024-11-29T22:12:29.143Z] """
[2024-11-29T22:12:29.143Z] def test_ok():
[2024-11-29T22:12:29.143Z] pass
[2024-11-29T22:12:29.143Z] """
[2024-11-29T22:12:29.143Z] )
[2024-11-29T22:12:29.143Z] result = pytester.runpytest(p1, "-n1")
[2024-11-29T22:12:29.143Z] > assert result.ret == 0
[2024-11-29T22:12:29.143Z] E assert <ExitCode.INTERNAL_ERROR: 3> == 0
[2024-11-29T22:12:29.143Z] E + where <ExitCode.INTERNAL_ERROR: 3> = <RunResult ret=3 len(stdout.lines)=49 len(stderr.lines)=0 duration=0.04s>.ret
[2024-11-29T22:12:29.143Z]
[2024-11-29T22:12:29.143Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:22: AssertionError
[2024-11-29T22:12:29.143Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.143Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.143Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.143Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_n1_pass0
[2024-11-29T22:12:29.143Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.143Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.143Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.143Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.143Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.143Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.143Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.143Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.143Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.143Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.143Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.143Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.143Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.143Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.143Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.143Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.143Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.143Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.143Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.143Z] ________________________ TestDistribution.test_n1_fail _________________________
[2024-11-29T22:12:29.143Z]
[2024-11-29T22:12:29.143Z] self = <acceptance_test.TestDistribution object at 0x7a31925276e0>
[2024-11-29T22:12:29.143Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_n1_fail0')>
[2024-11-29T22:12:29.143Z]
[2024-11-29T22:12:29.143Z] def test_n1_fail(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.143Z] p1 = pytester.makepyfile(
[2024-11-29T22:12:29.143Z] """
[2024-11-29T22:12:29.143Z] def test_fail():
[2024-11-29T22:12:29.143Z] assert 0
[2024-11-29T22:12:29.143Z] """
[2024-11-29T22:12:29.143Z] )
[2024-11-29T22:12:29.143Z] result = pytester.runpytest(p1, "-n1")
[2024-11-29T22:12:29.143Z] > assert result.ret == 1
[2024-11-29T22:12:29.143Z] E assert <ExitCode.INTERNAL_ERROR: 3> == 1
[2024-11-29T22:12:29.143Z] E + where <ExitCode.INTERNAL_ERROR: 3> = <RunResult ret=3 len(stdout.lines)=49 len(stderr.lines)=0 duration=0.04s>.ret
[2024-11-29T22:12:29.143Z]
[2024-11-29T22:12:29.143Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:33: AssertionError
[2024-11-29T22:12:29.143Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.143Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.143Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.143Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_n1_fail0
[2024-11-29T22:12:29.143Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.143Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.143Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.143Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.143Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.143Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.143Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.143Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.143Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.143Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.143Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.143Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.143Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.143Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.143Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.143Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.143Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.143Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.143Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.143Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.143Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.143Z] ____________________ TestDistribution.test_n1_import_error _____________________
[2024-11-29T22:12:29.143Z]
[2024-11-29T22:12:29.143Z] self = <acceptance_test.TestDistribution object at 0x7a3192527ad0>
[2024-11-29T22:12:29.143Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_n1_import_error0')>
[2024-11-29T22:12:29.143Z]
[2024-11-29T22:12:29.143Z] def test_n1_import_error(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.143Z] p1 = pytester.makepyfile(
[2024-11-29T22:12:29.143Z] """
[2024-11-29T22:12:29.143Z] import __import_of_missing_module
[2024-11-29T22:12:29.143Z] def test_import():
[2024-11-29T22:12:29.143Z] pass
[2024-11-29T22:12:29.143Z] """
[2024-11-29T22:12:29.143Z] )
[2024-11-29T22:12:29.143Z] result = pytester.runpytest(p1, "-n1")
[2024-11-29T22:12:29.143Z] > assert result.ret == 1
[2024-11-29T22:12:29.143Z] E assert <ExitCode.INTERNAL_ERROR: 3> == 1
[2024-11-29T22:12:29.143Z] E + where <ExitCode.INTERNAL_ERROR: 3> = <RunResult ret=3 len(stdout.lines)=49 len(stderr.lines)=0 duration=0.04s>.ret
[2024-11-29T22:12:29.143Z]
[2024-11-29T22:12:29.144Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:45: AssertionError
[2024-11-29T22:12:29.144Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.144Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.144Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.144Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_n1_import_error0
[2024-11-29T22:12:29.144Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.144Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.144Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.144Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.144Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.144Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.144Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.144Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.144Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.144Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.144Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.144Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.144Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.144Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.144Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.144Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.144Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.144Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.144Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.144Z] ________________________ TestDistribution.test_n1_skip _________________________
[2024-11-29T22:12:29.144Z]
[2024-11-29T22:12:29.144Z] self = <acceptance_test.TestDistribution object at 0x7a31925800b0>
[2024-11-29T22:12:29.144Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_n1_skip0')>
[2024-11-29T22:12:29.144Z]
[2024-11-29T22:12:29.144Z] def test_n1_skip(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.144Z] p1 = pytester.makepyfile(
[2024-11-29T22:12:29.144Z] """
[2024-11-29T22:12:29.144Z] def test_skip():
[2024-11-29T22:12:29.144Z] import pytest
[2024-11-29T22:12:29.144Z] pytest.skip("myreason")
[2024-11-29T22:12:29.144Z] """
[2024-11-29T22:12:29.144Z] )
[2024-11-29T22:12:29.144Z] result = pytester.runpytest(p1, "-n1")
[2024-11-29T22:12:29.144Z] > assert result.ret == 0
[2024-11-29T22:12:29.144Z] E assert <ExitCode.INTERNAL_ERROR: 3> == 0
[2024-11-29T22:12:29.144Z] E + where <ExitCode.INTERNAL_ERROR: 3> = <RunResult ret=3 len(stdout.lines)=49 len(stderr.lines)=0 duration=0.04s>.ret
[2024-11-29T22:12:29.144Z]
[2024-11-29T22:12:29.144Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:73: AssertionError
[2024-11-29T22:12:29.144Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.144Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.144Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.144Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_n1_skip0
[2024-11-29T22:12:29.144Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.144Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.144Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.144Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.144Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.144Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.144Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.144Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.144Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.144Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.144Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.144Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.144Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.144Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.144Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.144Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.144Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.144Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.144Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.144Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.144Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.144Z] _________________ TestDistribution.test_manytests_to_one_popen _________________
[2024-11-29T22:12:29.144Z]
[2024-11-29T22:12:29.144Z] self = <acceptance_test.TestDistribution object at 0x7a3192527b30>
[2024-11-29T22:12:29.144Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_manytests_to_one_popen0')>
[2024-11-29T22:12:29.144Z]
[2024-11-29T22:12:29.144Z] def test_manytests_to_one_popen(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.144Z] p1 = pytester.makepyfile(
[2024-11-29T22:12:29.144Z] """
[2024-11-29T22:12:29.144Z] import pytest
[2024-11-29T22:12:29.144Z] def test_fail0():
[2024-11-29T22:12:29.144Z] assert 0
[2024-11-29T22:12:29.144Z] def test_fail1():
[2024-11-29T22:12:29.144Z] raise ValueError()
[2024-11-29T22:12:29.144Z] def test_ok():
[2024-11-29T22:12:29.144Z] pass
[2024-11-29T22:12:29.144Z] def test_skip():
[2024-11-29T22:12:29.144Z] pytest.skip("hello")
[2024-11-29T22:12:29.144Z] """
[2024-11-29T22:12:29.144Z] )
[2024-11-29T22:12:29.144Z] result = pytester.runpytest(p1, "-v", "-d", "--tx=popen", "--tx=popen")
[2024-11-29T22:12:29.144Z] > result.stdout.fnmatch_lines(
[2024-11-29T22:12:29.144Z] [
[2024-11-29T22:12:29.144Z] "created: 2/2 workers",
[2024-11-29T22:12:29.144Z] "*2 failed, 1 passed, 1 skipped*",
[2024-11-29T22:12:29.144Z] ]
[2024-11-29T22:12:29.144Z] )
[2024-11-29T22:12:29.144Z] E Failed: nomatch: 'created: 2/2 workers'
[2024-11-29T22:12:29.144Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.144Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python'
[2024-11-29T22:12:29.144Z] E and: 'cachedir: .pytest_cache'
[2024-11-29T22:12:29.144Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_manytests_to_one_popen0'
[2024-11-29T22:12:29.144Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.144Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.144Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.144Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.144Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.144Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.144Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.144Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.144Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.144Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.144Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.144Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.144Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.144Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.144Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.144Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.144Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.144Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.145Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.145Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.145Z] E remains unmatched: 'created: 2/2 workers'
[2024-11-29T22:12:29.145Z]
[2024-11-29T22:12:29.145Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:105: Failed
[2024-11-29T22:12:29.145Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.145Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.145Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.145Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.145Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_manytests_to_one_popen0
[2024-11-29T22:12:29.145Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.145Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.145Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.145Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.145Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.145Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.145Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.145Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.145Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.145Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.145Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.145Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.145Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.145Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.145Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.145Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.145Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.145Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.145Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.145Z] _________ TestDistribution.test_exitfirst_waits_for_workers_to_finish __________
[2024-11-29T22:12:29.145Z]
[2024-11-29T22:12:29.145Z] self = <acceptance_test.TestDistribution object at 0x7a3192526e70>
[2024-11-29T22:12:29.145Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_exitfirst_waits_for_workers_to_finish0')>
[2024-11-29T22:12:29.145Z]
[2024-11-29T22:12:29.145Z] def test_exitfirst_waits_for_workers_to_finish(
[2024-11-29T22:12:29.145Z] self, pytester: pytest.Pytester
[2024-11-29T22:12:29.145Z] ) -> None:
[2024-11-29T22:12:29.145Z] """The DSession waits for workers before exiting early on failure.
[2024-11-29T22:12:29.145Z]
[2024-11-29T22:12:29.145Z] When -x/--exitfirst is set, the DSession wait for all workers to finish
[2024-11-29T22:12:29.145Z] before raising an Interrupt exception. This prevents reports from the
[2024-11-29T22:12:29.145Z] faiing test and other tests from being discarded.
[2024-11-29T22:12:29.145Z] """
[2024-11-29T22:12:29.145Z] p1 = pytester.makepyfile(
[2024-11-29T22:12:29.145Z] """
[2024-11-29T22:12:29.145Z] import time
[2024-11-29T22:12:29.145Z]
[2024-11-29T22:12:29.145Z] def test_fail1():
[2024-11-29T22:12:29.145Z] time.sleep(0.1)
[2024-11-29T22:12:29.145Z] assert 0
[2024-11-29T22:12:29.145Z] def test_fail2():
[2024-11-29T22:12:29.145Z] time.sleep(0.2)
[2024-11-29T22:12:29.145Z] def test_fail3():
[2024-11-29T22:12:29.145Z] time.sleep(0.3)
[2024-11-29T22:12:29.145Z] assert 0
[2024-11-29T22:12:29.145Z] def test_fail4():
[2024-11-29T22:12:29.145Z] time.sleep(0.3)
[2024-11-29T22:12:29.145Z] def test_fail5():
[2024-11-29T22:12:29.145Z] time.sleep(0.3)
[2024-11-29T22:12:29.145Z] def test_fail6():
[2024-11-29T22:12:29.145Z] time.sleep(0.3)
[2024-11-29T22:12:29.145Z] """
[2024-11-29T22:12:29.145Z] )
[2024-11-29T22:12:29.145Z] # Two workers are used
[2024-11-29T22:12:29.145Z] result = pytester.runpytest(p1, "-x", "-rA", "-v", "-n2")
[2024-11-29T22:12:29.145Z] > assert result.ret == 2
[2024-11-29T22:12:29.145Z] E assert <ExitCode.INTERNAL_ERROR: 3> == 2
[2024-11-29T22:12:29.145Z] E + where <ExitCode.INTERNAL_ERROR: 3> = <RunResult ret=3 len(stdout.lines)=50 len(stderr.lines)=0 duration=0.04s>.ret
[2024-11-29T22:12:29.145Z]
[2024-11-29T22:12:29.145Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:144: AssertionError
[2024-11-29T22:12:29.145Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.145Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.145Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.145Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.145Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_exitfirst_waits_for_workers_to_finish0
[2024-11-29T22:12:29.145Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.145Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.145Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.145Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.145Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.145Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.145Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.145Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.145Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.145Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.145Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.145Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.145Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.145Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.145Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.145Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.145Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.146Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.146Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.146Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.146Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.146Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.146Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.146Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.146Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.146Z] ________________ TestDistribution.test_basetemp_in_subprocesses ________________
[2024-11-29T22:12:29.146Z]
[2024-11-29T22:12:29.146Z] self = <acceptance_test.TestDistribution object at 0x7a3192527560>
[2024-11-29T22:12:29.146Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_basetemp_in_subprocesses0')>
[2024-11-29T22:12:29.146Z]
[2024-11-29T22:12:29.146Z] def test_basetemp_in_subprocesses(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.146Z] p1 = pytester.makepyfile(
[2024-11-29T22:12:29.146Z] """
[2024-11-29T22:12:29.146Z] def test_send(tmp_path):
[2024-11-29T22:12:29.146Z] from pathlib import Path
[2024-11-29T22:12:29.146Z] assert tmp_path.relative_to(Path(%r)), tmp_path
[2024-11-29T22:12:29.146Z] """
[2024-11-29T22:12:29.146Z] % str(pytester.path)
[2024-11-29T22:12:29.146Z] )
[2024-11-29T22:12:29.146Z] result = pytester.runpytest_subprocess(p1, "-n1")
[2024-11-29T22:12:29.146Z] > assert result.ret == 0
[2024-11-29T22:12:29.146Z] E assert <ExitCode.INTERNAL_ERROR: 3> == 0
[2024-11-29T22:12:29.146Z] E + where <ExitCode.INTERNAL_ERROR: 3> = <RunResult ret=3 len(stdout.lines)=38 len(stderr.lines)=0 duration=0.30s>.ret
[2024-11-29T22:12:29.146Z]
[2024-11-29T22:12:29.146Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:161: AssertionError
[2024-11-29T22:12:29.146Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.146Z] running: /usr/bin/python -mpytest --basetemp=/tmp/pytest-of-builduser/pytest-0/test_basetemp_in_subprocesses0/runpytest-0 /tmp/pytest-of-builduser/pytest-0/test_basetemp_in_subprocesses0/test_basetemp_in_subprocesses.py -n1
[2024-11-29T22:12:29.146Z] in: /tmp/pytest-of-builduser/pytest-0/test_basetemp_in_subprocesses0
[2024-11-29T22:12:29.146Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.146Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.146Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_basetemp_in_subprocesses0
[2024-11-29T22:12:29.146Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.146Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.146Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.146Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.146Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.146Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.146Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.146Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.146Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.146Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.146Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.146Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.146Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.146Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.146Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.146Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.146Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.146Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.146Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.146Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.146Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.146Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.146Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.146Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.146Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.146Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.146Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.146Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.146Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.146Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.146Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.146Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.146Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.146Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.146Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.146Z] ___________________ TestDistribution.test_dist_ini_specified ___________________
[2024-11-29T22:12:29.146Z]
[2024-11-29T22:12:29.146Z] self = <acceptance_test.TestDistribution object at 0x7a3192526e40>
[2024-11-29T22:12:29.146Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_dist_ini_specified0')>
[2024-11-29T22:12:29.146Z]
[2024-11-29T22:12:29.146Z] def test_dist_ini_specified(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.146Z] p1 = pytester.makepyfile(
[2024-11-29T22:12:29.146Z] """
[2024-11-29T22:12:29.146Z] import pytest
[2024-11-29T22:12:29.146Z] def test_fail0():
[2024-11-29T22:12:29.146Z] assert 0
[2024-11-29T22:12:29.146Z] def test_fail1():
[2024-11-29T22:12:29.146Z] raise ValueError()
[2024-11-29T22:12:29.146Z] def test_ok():
[2024-11-29T22:12:29.146Z] pass
[2024-11-29T22:12:29.146Z] def test_skip():
[2024-11-29T22:12:29.146Z] pytest.skip("hello")
[2024-11-29T22:12:29.146Z] """
[2024-11-29T22:12:29.146Z] )
[2024-11-29T22:12:29.146Z] pytester.makeini(
[2024-11-29T22:12:29.146Z] """
[2024-11-29T22:12:29.146Z] [pytest]
[2024-11-29T22:12:29.146Z] addopts = --tx=3*popen
[2024-11-29T22:12:29.146Z] """
[2024-11-29T22:12:29.146Z] )
[2024-11-29T22:12:29.146Z] result = pytester.runpytest(p1, "-d", "-v")
[2024-11-29T22:12:29.146Z] > result.stdout.fnmatch_lines(
[2024-11-29T22:12:29.146Z] [
[2024-11-29T22:12:29.146Z] "created: 3/3 workers",
[2024-11-29T22:12:29.146Z] "*2 failed, 1 passed, 1 skipped*",
[2024-11-29T22:12:29.146Z] ]
[2024-11-29T22:12:29.146Z] )
[2024-11-29T22:12:29.146Z] E Failed: nomatch: 'created: 3/3 workers'
[2024-11-29T22:12:29.146Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.146Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python'
[2024-11-29T22:12:29.146Z] E and: 'cachedir: .pytest_cache'
[2024-11-29T22:12:29.146Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_dist_ini_specified0'
[2024-11-29T22:12:29.146Z] E and: 'configfile: tox.ini'
[2024-11-29T22:12:29.146Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.146Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.146Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.146Z] E remains unmatched: 'created: 3/3 workers'
[2024-11-29T22:12:29.146Z]
[2024-11-29T22:12:29.146Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:185: Failed
[2024-11-29T22:12:29.146Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.146Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.146Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.146Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.146Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_dist_ini_specified0
[2024-11-29T22:12:29.146Z] configfile: tox.ini
[2024-11-29T22:12:29.146Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.146Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.146Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.146Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.146Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.146Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.146Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.146Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.147Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.147Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.147Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.147Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.147Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.147Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.147Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.147Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.147Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.147Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.147Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.147Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.147Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.147Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.147Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.147Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.147Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.147Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.147Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.151Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.151Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.151Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.151Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.151Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.151Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.151Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.151Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.151Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.151Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.151Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.151Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.151Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.151Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.151Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.151Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.151Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.151Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.151Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.151Z] _________________ TestDistribution.test_dist_tests_with_crash __________________
[2024-11-29T22:12:29.151Z]
[2024-11-29T22:12:29.151Z] self = <acceptance_test.TestDistribution object at 0x7a31925270e0>
[2024-11-29T22:12:29.151Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_dist_tests_with_crash0')>
[2024-11-29T22:12:29.151Z]
[2024-11-29T22:12:29.151Z] def test_dist_tests_with_crash(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.151Z] if not hasattr(os, "kill"):
[2024-11-29T22:12:29.151Z] pytest.skip("no os.kill")
[2024-11-29T22:12:29.151Z]
[2024-11-29T22:12:29.151Z] p1 = pytester.makepyfile(
[2024-11-29T22:12:29.151Z] """
[2024-11-29T22:12:29.151Z] import pytest
[2024-11-29T22:12:29.151Z] def test_fail0():
[2024-11-29T22:12:29.151Z] assert 0
[2024-11-29T22:12:29.151Z] def test_fail1():
[2024-11-29T22:12:29.151Z] raise ValueError()
[2024-11-29T22:12:29.151Z] def test_ok():
[2024-11-29T22:12:29.151Z] pass
[2024-11-29T22:12:29.151Z] def test_skip():
[2024-11-29T22:12:29.151Z] pytest.skip("hello")
[2024-11-29T22:12:29.152Z] def test_crash():
[2024-11-29T22:12:29.152Z] import time
[2024-11-29T22:12:29.152Z] import os
[2024-11-29T22:12:29.152Z] time.sleep(0.5)
[2024-11-29T22:12:29.152Z] os.kill(os.getpid(), 15)
[2024-11-29T22:12:29.152Z] """
[2024-11-29T22:12:29.152Z] )
[2024-11-29T22:12:29.152Z] result = pytester.runpytest(p1, "-v", "-d", "-n1")
[2024-11-29T22:12:29.152Z] > result.stdout.fnmatch_lines(
[2024-11-29T22:12:29.152Z] [
[2024-11-29T22:12:29.152Z] "*Python*",
[2024-11-29T22:12:29.152Z] "*PASS**test_ok*",
[2024-11-29T22:12:29.152Z] "*node*down*",
[2024-11-29T22:12:29.152Z] "*3 failed, 1 passed, 1 skipped*",
[2024-11-29T22:12:29.152Z] ]
[2024-11-29T22:12:29.152Z] )
[2024-11-29T22:12:29.152Z] E Failed: nomatch: '*Python*'
[2024-11-29T22:12:29.152Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.152Z] E fnmatch: '*Python*'
[2024-11-29T22:12:29.152Z] E with: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python'
[2024-11-29T22:12:29.152Z] E nomatch: '*PASS**test_ok*'
[2024-11-29T22:12:29.152Z] E and: 'cachedir: .pytest_cache'
[2024-11-29T22:12:29.152Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_dist_tests_with_crash0'
[2024-11-29T22:12:29.152Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.152Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.152Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.152Z] E remains unmatched: '*PASS**test_ok*'
[2024-11-29T22:12:29.152Z]
[2024-11-29T22:12:29.152Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:216: Failed
[2024-11-29T22:12:29.152Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.152Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.152Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.152Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.152Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_dist_tests_with_crash0
[2024-11-29T22:12:29.152Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.152Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.152Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.152Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.152Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.152Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.152Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.152Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.152Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.152Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.152Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.152Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.152Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.152Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.152Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.152Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.152Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.152Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.152Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.152Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.152Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.152Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.152Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.152Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.152Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.152Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.152Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.152Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.152Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.152Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.152Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.152Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.152Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.152Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.152Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.152Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.152Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.152Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.152Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.152Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.152Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.152Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.152Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.152Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.152Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.152Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.152Z] _____________ TestDistribution.test_distribution_rsyncdirs_example _____________
[2024-11-29T22:12:29.152Z]
[2024-11-29T22:12:29.152Z] self = <acceptance_test.TestDistribution object at 0x7a3192526de0>
[2024-11-29T22:12:29.152Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_distribution_rsyncdirs_example0')>
[2024-11-29T22:12:29.152Z] monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7a3191ea4f80>
[2024-11-29T22:12:29.152Z]
[2024-11-29T22:12:29.152Z] def test_distribution_rsyncdirs_example(
[2024-11-29T22:12:29.152Z] self, pytester: pytest.Pytester, monkeypatch: pytest.MonkeyPatch
[2024-11-29T22:12:29.152Z] ) -> None:
[2024-11-29T22:12:29.152Z] # use a custom plugin that has a custom command-line option to ensure
[2024-11-29T22:12:29.152Z] # this is propagated to workers (see #491)
[2024-11-29T22:12:29.152Z] pytester.makepyfile(
[2024-11-29T22:12:29.152Z] **{
[2024-11-29T22:12:29.152Z] "myplugin/src/foobarplugin.py": """
[2024-11-29T22:12:29.152Z] from __future__ import print_function
[2024-11-29T22:12:29.152Z]
[2024-11-29T22:12:29.152Z] import os
[2024-11-29T22:12:29.152Z] import sys
[2024-11-29T22:12:29.152Z] import pytest
[2024-11-29T22:12:29.152Z]
[2024-11-29T22:12:29.152Z] def pytest_addoption(parser):
[2024-11-29T22:12:29.152Z] parser.addoption("--foobar", action="store", dest="foobar_opt")
[2024-11-29T22:12:29.152Z]
[2024-11-29T22:12:29.152Z] @pytest.hookimpl(tryfirst=True)
[2024-11-29T22:12:29.152Z] def pytest_load_initial_conftests(early_config):
[2024-11-29T22:12:29.152Z] opt = early_config.known_args_namespace.foobar_opt
[2024-11-29T22:12:29.152Z] print("--foobar=%s active! [%s]" % (opt, os.getpid()), file=sys.stderr)
[2024-11-29T22:12:29.152Z] """
[2024-11-29T22:12:29.152Z] }
[2024-11-29T22:12:29.152Z] )
[2024-11-29T22:12:29.152Z] assert (pytester.path / "myplugin/src/foobarplugin.py").is_file()
[2024-11-29T22:12:29.152Z] monkeypatch.setenv(
[2024-11-29T22:12:29.152Z] "PYTHONPATH", str(pytester.path / "myplugin/src"), prepend=os.pathsep
[2024-11-29T22:12:29.152Z] )
[2024-11-29T22:12:29.152Z]
[2024-11-29T22:12:29.152Z] source = pytester.mkdir("source")
[2024-11-29T22:12:29.152Z] dest = pytester.mkdir("dest")
[2024-11-29T22:12:29.152Z] subdir = source / "example_pkg"
[2024-11-29T22:12:29.152Z] subdir.mkdir()
[2024-11-29T22:12:29.152Z] subdir.joinpath("__init__.py").touch()
[2024-11-29T22:12:29.152Z] p = subdir / "test_one.py"
[2024-11-29T22:12:29.152Z] p.write_text("def test_5():\n assert not __file__.startswith(%r)" % str(p))
[2024-11-29T22:12:29.152Z] result = pytester.runpytest_subprocess(
[2024-11-29T22:12:29.152Z] "-v",
[2024-11-29T22:12:29.152Z] "-d",
[2024-11-29T22:12:29.152Z] "-s",
[2024-11-29T22:12:29.152Z] "-pfoobarplugin",
[2024-11-29T22:12:29.152Z] "--foobar=123",
[2024-11-29T22:12:29.152Z] "--dist=load",
[2024-11-29T22:12:29.152Z] f"--rsyncdir={subdir}",
[2024-11-29T22:12:29.152Z] f"--tx=popen//chdir={dest}",
[2024-11-29T22:12:29.152Z] p,
[2024-11-29T22:12:29.153Z] )
[2024-11-29T22:12:29.153Z] > assert result.ret == 0
[2024-11-29T22:12:29.153Z] E assert <ExitCode.INTERNAL_ERROR: 3> == 0
[2024-11-29T22:12:29.153Z] E + where <ExitCode.INTERNAL_ERROR: 3> = <RunResult ret=3 len(stdout.lines)=39 len(stderr.lines)=1 duration=0.29s>.ret
[2024-11-29T22:12:29.153Z]
[2024-11-29T22:12:29.153Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:273: AssertionError
[2024-11-29T22:12:29.153Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.153Z] running: /usr/bin/python -mpytest --basetemp=/tmp/pytest-of-builduser/pytest-0/test_distribution_rsyncdirs_example0/runpytest-0 -v -d -s -pfoobarplugin --foobar=123 --dist=load --rsyncdir=/tmp/pytest-of-builduser/pytest-0/test_distribution_rsyncdirs_example0/source/example_pkg --tx=popen//chdir=/tmp/pytest-of-builduser/pytest-0/test_distribution_rsyncdirs_example0/dest /tmp/pytest-of-builduser/pytest-0/test_distribution_rsyncdirs_example0/source/example_pkg/test_one.py
[2024-11-29T22:12:29.153Z] in: /tmp/pytest-of-builduser/pytest-0/test_distribution_rsyncdirs_example0
[2024-11-29T22:12:29.153Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.153Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.153Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.153Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_distribution_rsyncdirs_example0
[2024-11-29T22:12:29.153Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.153Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.153Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.153Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.153Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.153Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.153Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.153Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.153Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.153Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.153Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.153Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.153Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.153Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.153Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.153Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.153Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.153Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.153Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.153Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.153Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.153Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.153Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.153Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.153Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.153Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.153Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.153Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.153Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.153Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.153Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.153Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.153Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.153Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.153Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.153Z] ----------------------------- Captured stderr call -----------------------------
[2024-11-29T22:12:29.153Z] --foobar=123 active! [7614]
[2024-11-29T22:12:29.153Z] _____________________ TestDistribution.test_data_exchange ______________________
[2024-11-29T22:12:29.153Z]
[2024-11-29T22:12:29.153Z] self = <acceptance_test.TestDistribution object at 0x7a3192526810>
[2024-11-29T22:12:29.153Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_data_exchange0')>
[2024-11-29T22:12:29.153Z]
[2024-11-29T22:12:29.153Z] def test_data_exchange(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.153Z] pytester.makeconftest(
[2024-11-29T22:12:29.153Z] """
[2024-11-29T22:12:29.153Z] # This hook only called on the controlling process.
[2024-11-29T22:12:29.153Z] def pytest_configure_node(node):
[2024-11-29T22:12:29.153Z] node.workerinput['a'] = 42
[2024-11-29T22:12:29.153Z] node.workerinput['b'] = 7
[2024-11-29T22:12:29.153Z]
[2024-11-29T22:12:29.153Z] def pytest_configure(config):
[2024-11-29T22:12:29.153Z] # this attribute is only set on workers
[2024-11-29T22:12:29.153Z] if hasattr(config, 'workerinput'):
[2024-11-29T22:12:29.153Z] a = config.workerinput['a']
[2024-11-29T22:12:29.153Z] b = config.workerinput['b']
[2024-11-29T22:12:29.153Z] r = a + b
[2024-11-29T22:12:29.153Z] config.workeroutput['r'] = r
[2024-11-29T22:12:29.153Z]
[2024-11-29T22:12:29.153Z] # This hook only called on the controlling process.
[2024-11-29T22:12:29.153Z] def pytest_testnodedown(node, error):
[2024-11-29T22:12:29.153Z] node.config.calc_result = node.workeroutput['r']
[2024-11-29T22:12:29.153Z]
[2024-11-29T22:12:29.153Z] def pytest_terminal_summary(terminalreporter):
[2024-11-29T22:12:29.153Z] if not hasattr(terminalreporter.config, 'workerinput'):
[2024-11-29T22:12:29.153Z] calc_result = terminalreporter.config.calc_result
[2024-11-29T22:12:29.153Z] terminalreporter._tw.sep('-',
[2024-11-29T22:12:29.153Z] 'calculated result is %s' % calc_result)
[2024-11-29T22:12:29.153Z] """
[2024-11-29T22:12:29.153Z] )
[2024-11-29T22:12:29.153Z] p1 = pytester.makepyfile("def test_func(): pass")
[2024-11-29T22:12:29.153Z] result = pytester.runpytest("-v", p1, "-d", "--tx=popen")
[2024-11-29T22:12:29.153Z] > result.stdout.fnmatch_lines(
[2024-11-29T22:12:29.153Z] [
[2024-11-29T22:12:29.153Z] "created: 1/1 worker",
[2024-11-29T22:12:29.153Z] "*calculated result is 49*",
[2024-11-29T22:12:29.153Z] "*1 passed*",
[2024-11-29T22:12:29.153Z] ]
[2024-11-29T22:12:29.153Z] )
[2024-11-29T22:12:29.153Z] E Failed: nomatch: 'created: 1/1 worker'
[2024-11-29T22:12:29.153Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.153Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python'
[2024-11-29T22:12:29.153Z] E and: 'cachedir: .pytest_cache'
[2024-11-29T22:12:29.153Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_data_exchange0'
[2024-11-29T22:12:29.153Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.153Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.153Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.153Z] E remains unmatched: 'created: 1/1 worker'
[2024-11-29T22:12:29.153Z]
[2024-11-29T22:12:29.153Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:311: Failed
[2024-11-29T22:12:29.153Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.153Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.153Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.153Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.153Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_data_exchange0
[2024-11-29T22:12:29.153Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.153Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.153Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.153Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.153Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.153Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.153Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.153Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.153Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.153Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.153Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.153Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.154Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.154Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.154Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.154Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.154Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.154Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.154Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.154Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.154Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.154Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.154Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.154Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.154Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.154Z] ____________ TestDistribution.test_keyboardinterrupt_hooks_issue79 _____________
[2024-11-29T22:12:29.154Z]
[2024-11-29T22:12:29.154Z] self = <acceptance_test.TestDistribution object at 0x7a3192526ae0>
[2024-11-29T22:12:29.154Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_keyboardinterrupt_hooks_issue790')>
[2024-11-29T22:12:29.154Z]
[2024-11-29T22:12:29.154Z] def test_keyboardinterrupt_hooks_issue79(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.154Z] pytester.makepyfile(
[2024-11-29T22:12:29.154Z] __init__="",
[2024-11-29T22:12:29.154Z] test_one="""
[2024-11-29T22:12:29.154Z] def test_hello():
[2024-11-29T22:12:29.154Z] raise KeyboardInterrupt()
[2024-11-29T22:12:29.154Z] """,
[2024-11-29T22:12:29.154Z] )
[2024-11-29T22:12:29.154Z] pytester.makeconftest(
[2024-11-29T22:12:29.154Z] """
[2024-11-29T22:12:29.154Z] def pytest_sessionfinish(session):
[2024-11-29T22:12:29.154Z] # on the worker
[2024-11-29T22:12:29.154Z] if hasattr(session.config, 'workeroutput'):
[2024-11-29T22:12:29.154Z] session.config.workeroutput['s2'] = 42
[2024-11-29T22:12:29.154Z] # on the controller
[2024-11-29T22:12:29.154Z] def pytest_testnodedown(node, error):
[2024-11-29T22:12:29.154Z] assert node.workeroutput['s2'] == 42
[2024-11-29T22:12:29.154Z] print ("s2call-finished")
[2024-11-29T22:12:29.154Z] """
[2024-11-29T22:12:29.154Z] )
[2024-11-29T22:12:29.154Z] args = ["-n1", "--debug"]
[2024-11-29T22:12:29.154Z] result = pytester.runpytest_subprocess(*args)
[2024-11-29T22:12:29.154Z] s = result.stdout.str()
[2024-11-29T22:12:29.154Z] > assert result.ret == 2
[2024-11-29T22:12:29.154Z] E assert <ExitCode.INTERNAL_ERROR: 3> == 2
[2024-11-29T22:12:29.154Z] E + where <ExitCode.INTERNAL_ERROR: 3> = <RunResult ret=3 len(stdout.lines)=53 len(stderr.lines)=2 duration=0.28s>.ret
[2024-11-29T22:12:29.154Z]
[2024-11-29T22:12:29.154Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:343: AssertionError
[2024-11-29T22:12:29.154Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.154Z] running: /usr/bin/python -mpytest --basetemp=/tmp/pytest-of-builduser/pytest-0/test_keyboardinterrupt_hooks_issue790/runpytest-0 -n1 --debug
[2024-11-29T22:12:29.154Z] in: /tmp/pytest-of-builduser/pytest-0/test_keyboardinterrupt_hooks_issue790
[2024-11-29T22:12:29.154Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.154Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.154Z] using: pytest-8.3.3
[2024-11-29T22:12:29.154Z] registered third-party plugins:
[2024-11-29T22:12:29.154Z] pytest-xdist-3.6.1 at /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/plugin.py
[2024-11-29T22:12:29.154Z] pytest-xdist-3.6.1 at /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/looponfail.py
[2024-11-29T22:12:29.154Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_keyboardinterrupt_hooks_issue790
[2024-11-29T22:12:29.154Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.154Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.154Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.154Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.154Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.154Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.154Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.154Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.154Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.154Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.154Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.154Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.154Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.154Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.154Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.154Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.154Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.154Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.154Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.154Z] ----------------------------- Captured stderr call -----------------------------
[2024-11-29T22:12:29.154Z] writing pytest debug information to pytestdebug.log
[2024-11-29T22:12:29.154Z] wrote pytest debug information to pytestdebug.log
[2024-11-29T22:12:29.154Z] ___________________________ TestDistEach.test_simple ___________________________
[2024-11-29T22:12:29.154Z]
[2024-11-29T22:12:29.154Z] self = <acceptance_test.TestDistEach object at 0x7a3192525dc0>
[2024-11-29T22:12:29.154Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_simple0')>
[2024-11-29T22:12:29.154Z]
[2024-11-29T22:12:29.154Z] def test_simple(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.154Z] pytester.makepyfile(
[2024-11-29T22:12:29.154Z] """
[2024-11-29T22:12:29.154Z] def test_hello():
[2024-11-29T22:12:29.154Z] pass
[2024-11-29T22:12:29.154Z] """
[2024-11-29T22:12:29.154Z] )
[2024-11-29T22:12:29.154Z] result = pytester.runpytest_subprocess("--debug", "--dist=each", "--tx=2*popen")
[2024-11-29T22:12:29.154Z] > assert not result.ret
[2024-11-29T22:12:29.154Z] E assert not <ExitCode.INTERNAL_ERROR: 3>
[2024-11-29T22:12:29.154Z] E + where <ExitCode.INTERNAL_ERROR: 3> = <RunResult ret=3 len(stdout.lines)=53 len(stderr.lines)=2 duration=0.29s>.ret
[2024-11-29T22:12:29.154Z]
[2024-11-29T22:12:29.154Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:385: AssertionError
[2024-11-29T22:12:29.154Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.154Z] running: /usr/bin/python -mpytest --basetemp=/tmp/pytest-of-builduser/pytest-0/test_simple0/runpytest-0 --debug --dist=each --tx=2*popen
[2024-11-29T22:12:29.154Z] in: /tmp/pytest-of-builduser/pytest-0/test_simple0
[2024-11-29T22:12:29.154Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.154Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.154Z] using: pytest-8.3.3
[2024-11-29T22:12:29.154Z] registered third-party plugins:
[2024-11-29T22:12:29.154Z] pytest-xdist-3.6.1 at /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/plugin.py
[2024-11-29T22:12:29.154Z] pytest-xdist-3.6.1 at /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/looponfail.py
[2024-11-29T22:12:29.154Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_simple0
[2024-11-29T22:12:29.154Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.154Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.154Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.154Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.154Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.154Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.154Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.154Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.154Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.154Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.155Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.155Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.155Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.155Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.155Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.155Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.155Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.155Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.155Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.155Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.155Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.155Z] ----------------------------- Captured stderr call -----------------------------
[2024-11-29T22:12:29.155Z] writing pytest debug information to pytestdebug.log
[2024-11-29T22:12:29.155Z] wrote pytest debug information to pytestdebug.log
[2024-11-29T22:12:29.155Z] ________________ TestTerminalReporting.test_output_verbosity[] _________________
[2024-11-29T22:12:29.155Z]
[2024-11-29T22:12:29.155Z] self = <acceptance_test.TestTerminalReporting object at 0x7a3192525b80>
[2024-11-29T22:12:29.155Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_output_verbosity0')>
[2024-11-29T22:12:29.155Z] verbosity = ''
[2024-11-29T22:12:29.155Z]
[2024-11-29T22:12:29.155Z] @pytest.mark.parametrize("verbosity", ["", "-q", "-v"])
[2024-11-29T22:12:29.155Z] def test_output_verbosity(self, pytester: pytest.Pytester, verbosity: str) -> None:
[2024-11-29T22:12:29.155Z] pytester.makepyfile(
[2024-11-29T22:12:29.155Z] """
[2024-11-29T22:12:29.155Z] def test_ok():
[2024-11-29T22:12:29.155Z] pass
[2024-11-29T22:12:29.155Z] """
[2024-11-29T22:12:29.155Z] )
[2024-11-29T22:12:29.155Z] args = ["-n1"]
[2024-11-29T22:12:29.155Z] if verbosity:
[2024-11-29T22:12:29.155Z] args.append(verbosity)
[2024-11-29T22:12:29.155Z] result = pytester.runpytest(*args)
[2024-11-29T22:12:29.155Z] out = result.stdout.str()
[2024-11-29T22:12:29.155Z] if verbosity == "-v":
[2024-11-29T22:12:29.155Z] assert "scheduling tests" in out
[2024-11-29T22:12:29.155Z] assert "1 worker [1 item]" in out
[2024-11-29T22:12:29.155Z] elif verbosity == "-q":
[2024-11-29T22:12:29.155Z] assert "scheduling tests" not in out
[2024-11-29T22:12:29.155Z] assert "gw" not in out
[2024-11-29T22:12:29.155Z] assert "bringing up nodes..." in out
[2024-11-29T22:12:29.155Z] else:
[2024-11-29T22:12:29.155Z] assert "scheduling tests" not in out
[2024-11-29T22:12:29.155Z] > assert "1 worker [1 item]" in out
[2024-11-29T22:12:29.155Z] E assert '1 worker [1 item]' in '============================= test session starts ==============================\nplatform linux -- Python 3.12.7, py... raise ValueError(f"unknown execmodel {backend!r}")\nINTERNALERROR> ValueError: unknown execmodel \'main_thread_only\''
[2024-11-29T22:12:29.155Z]
[2024-11-29T22:12:29.155Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:440: AssertionError
[2024-11-29T22:12:29.155Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.155Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.155Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.155Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_output_verbosity0
[2024-11-29T22:12:29.155Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.155Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.155Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.155Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.155Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.155Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.155Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.155Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.155Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.155Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.155Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.155Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.155Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.155Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.155Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.155Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.155Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.155Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.155Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.155Z] _______________ TestTerminalReporting.test_output_verbosity[-q] ________________
[2024-11-29T22:12:29.155Z]
[2024-11-29T22:12:29.155Z] self = <acceptance_test.TestTerminalReporting object at 0x7a3192525820>
[2024-11-29T22:12:29.155Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_output_verbosity1')>
[2024-11-29T22:12:29.155Z] verbosity = '-q'
[2024-11-29T22:12:29.155Z]
[2024-11-29T22:12:29.155Z] @pytest.mark.parametrize("verbosity", ["", "-q", "-v"])
[2024-11-29T22:12:29.155Z] def test_output_verbosity(self, pytester: pytest.Pytester, verbosity: str) -> None:
[2024-11-29T22:12:29.155Z] pytester.makepyfile(
[2024-11-29T22:12:29.155Z] """
[2024-11-29T22:12:29.155Z] def test_ok():
[2024-11-29T22:12:29.155Z] pass
[2024-11-29T22:12:29.155Z] """
[2024-11-29T22:12:29.155Z] )
[2024-11-29T22:12:29.155Z] args = ["-n1"]
[2024-11-29T22:12:29.155Z] if verbosity:
[2024-11-29T22:12:29.155Z] args.append(verbosity)
[2024-11-29T22:12:29.155Z] result = pytester.runpytest(*args)
[2024-11-29T22:12:29.155Z] out = result.stdout.str()
[2024-11-29T22:12:29.155Z] if verbosity == "-v":
[2024-11-29T22:12:29.155Z] assert "scheduling tests" in out
[2024-11-29T22:12:29.155Z] assert "1 worker [1 item]" in out
[2024-11-29T22:12:29.155Z] elif verbosity == "-q":
[2024-11-29T22:12:29.155Z] assert "scheduling tests" not in out
[2024-11-29T22:12:29.155Z] assert "gw" not in out
[2024-11-29T22:12:29.155Z] > assert "bringing up nodes..." in out
[2024-11-29T22:12:29.155Z] E assert 'bringing up nodes...' in 'INTERNALERROR> Traceback (most recent call last):\nINTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/m... raise ValueError(f"unknown execmodel {backend!r}")\nINTERNALERROR> ValueError: unknown execmodel \'main_thread_only\''
[2024-11-29T22:12:29.155Z]
[2024-11-29T22:12:29.155Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:437: AssertionError
[2024-11-29T22:12:29.155Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.155Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.155Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.155Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.155Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.155Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.155Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.155Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.155Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.155Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.156Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.156Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.156Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.156Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.156Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.156Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.156Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.156Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.156Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.156Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.156Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.156Z] _______________ TestTerminalReporting.test_output_verbosity[-v] ________________
[2024-11-29T22:12:29.156Z]
[2024-11-29T22:12:29.156Z] self = <acceptance_test.TestTerminalReporting object at 0x7a31925253d0>
[2024-11-29T22:12:29.156Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_output_verbosity2')>
[2024-11-29T22:12:29.156Z] verbosity = '-v'
[2024-11-29T22:12:29.156Z]
[2024-11-29T22:12:29.156Z] @pytest.mark.parametrize("verbosity", ["", "-q", "-v"])
[2024-11-29T22:12:29.156Z] def test_output_verbosity(self, pytester: pytest.Pytester, verbosity: str) -> None:
[2024-11-29T22:12:29.156Z] pytester.makepyfile(
[2024-11-29T22:12:29.156Z] """
[2024-11-29T22:12:29.156Z] def test_ok():
[2024-11-29T22:12:29.156Z] pass
[2024-11-29T22:12:29.156Z] """
[2024-11-29T22:12:29.156Z] )
[2024-11-29T22:12:29.156Z] args = ["-n1"]
[2024-11-29T22:12:29.156Z] if verbosity:
[2024-11-29T22:12:29.156Z] args.append(verbosity)
[2024-11-29T22:12:29.156Z] result = pytester.runpytest(*args)
[2024-11-29T22:12:29.156Z] out = result.stdout.str()
[2024-11-29T22:12:29.156Z] if verbosity == "-v":
[2024-11-29T22:12:29.156Z] > assert "scheduling tests" in out
[2024-11-29T22:12:29.156Z] E assert 'scheduling tests' in '============================= test session starts ==============================\nplatform linux -- Python 3.12.7, py... raise ValueError(f"unknown execmodel {backend!r}")\nINTERNALERROR> ValueError: unknown execmodel \'main_thread_only\''
[2024-11-29T22:12:29.156Z]
[2024-11-29T22:12:29.156Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:432: AssertionError
[2024-11-29T22:12:29.156Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.156Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.156Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.156Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.156Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_output_verbosity2
[2024-11-29T22:12:29.156Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.156Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.156Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.156Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.156Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.156Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.156Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.156Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.156Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.156Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.156Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.156Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.156Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.156Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.156Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.156Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.156Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.156Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.156Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.156Z] __________________ TestTerminalReporting.test_pass_skip_fail ___________________
[2024-11-29T22:12:29.156Z]
[2024-11-29T22:12:29.156Z] self = <acceptance_test.TestTerminalReporting object at 0x7a3192525580>
[2024-11-29T22:12:29.156Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_pass_skip_fail0')>
[2024-11-29T22:12:29.156Z]
[2024-11-29T22:12:29.156Z] def test_pass_skip_fail(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.156Z] pytester.makepyfile(
[2024-11-29T22:12:29.156Z] """
[2024-11-29T22:12:29.156Z] import pytest
[2024-11-29T22:12:29.156Z] def test_ok():
[2024-11-29T22:12:29.156Z] pass
[2024-11-29T22:12:29.156Z] def test_skip():
[2024-11-29T22:12:29.156Z] pytest.skip("xx")
[2024-11-29T22:12:29.156Z] def test_func():
[2024-11-29T22:12:29.156Z] assert 0
[2024-11-29T22:12:29.156Z] """
[2024-11-29T22:12:29.156Z] )
[2024-11-29T22:12:29.156Z] result = pytester.runpytest("-n1", "-v")
[2024-11-29T22:12:29.156Z] > result.stdout.fnmatch_lines_random(
[2024-11-29T22:12:29.156Z] [
[2024-11-29T22:12:29.156Z] "*PASS*test_pass_skip_fail.py*test_ok*",
[2024-11-29T22:12:29.156Z] "*SKIP*test_pass_skip_fail.py*test_skip*",
[2024-11-29T22:12:29.156Z] "*FAIL*test_pass_skip_fail.py*test_func*",
[2024-11-29T22:12:29.156Z] ]
[2024-11-29T22:12:29.156Z] )
[2024-11-29T22:12:29.156Z] E Failed: line '*PASS*test_pass_skip_fail.py*test_ok*' not found in output
[2024-11-29T22:12:29.156Z]
[2024-11-29T22:12:29.156Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:455: Failed
[2024-11-29T22:12:29.156Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.156Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.156Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.156Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.156Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_pass_skip_fail0
[2024-11-29T22:12:29.156Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.156Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.156Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.156Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.156Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.156Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.156Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.156Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.156Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.156Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.156Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.156Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.156Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.156Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.156Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.156Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.156Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.157Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.157Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.157Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.157Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.157Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.157Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.157Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.157Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.157Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.157Z] ___________________ TestTerminalReporting.test_fail_platinfo ___________________
[2024-11-29T22:12:29.157Z]
[2024-11-29T22:12:29.157Z] self = <acceptance_test.TestTerminalReporting object at 0x7a3192c6e150>
[2024-11-29T22:12:29.157Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_fail_platinfo0')>
[2024-11-29T22:12:29.157Z]
[2024-11-29T22:12:29.157Z] def test_fail_platinfo(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.157Z] pytester.makepyfile(
[2024-11-29T22:12:29.157Z] """
[2024-11-29T22:12:29.157Z] def test_func():
[2024-11-29T22:12:29.157Z] assert 0
[2024-11-29T22:12:29.157Z] """
[2024-11-29T22:12:29.157Z] )
[2024-11-29T22:12:29.157Z] result = pytester.runpytest("-n1", "-v")
[2024-11-29T22:12:29.157Z] > result.stdout.fnmatch_lines(
[2024-11-29T22:12:29.157Z] [
[2024-11-29T22:12:29.157Z] "*FAIL*test_fail_platinfo.py*test_func*",
[2024-11-29T22:12:29.157Z] "*0*Python*",
[2024-11-29T22:12:29.157Z] "*def test_func():",
[2024-11-29T22:12:29.157Z] "> assert 0",
[2024-11-29T22:12:29.157Z] "E assert 0",
[2024-11-29T22:12:29.157Z] ]
[2024-11-29T22:12:29.157Z] )
[2024-11-29T22:12:29.157Z] E Failed: nomatch: '*FAIL*test_fail_platinfo.py*test_func*'
[2024-11-29T22:12:29.157Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.157Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python'
[2024-11-29T22:12:29.157Z] E and: 'cachedir: .pytest_cache'
[2024-11-29T22:12:29.157Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_fail_platinfo0'
[2024-11-29T22:12:29.157Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.157Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.157Z] E remains unmatched: '*FAIL*test_fail_platinfo.py*test_func*'
[2024-11-29T22:12:29.157Z]
[2024-11-29T22:12:29.157Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:474: Failed
[2024-11-29T22:12:29.157Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.157Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.157Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.157Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.157Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_fail_platinfo0
[2024-11-29T22:12:29.157Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.157Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.157Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.157Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.157Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.157Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.157Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.157Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.157Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.157Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.157Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.157Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.157Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.157Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.157Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.157Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.157Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.157Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.157Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.157Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.157Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.157Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.157Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.157Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.157Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.157Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.157Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.157Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.157Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.157Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.157Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.157Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.157Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.157Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.157Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.157Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.157Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.157Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.157Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.157Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.157Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.157Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.157Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.157Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.157Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.157Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.157Z] __________________ TestTerminalReporting.test_logfinish_hook ___________________
[2024-11-29T22:12:29.157Z]
[2024-11-29T22:12:29.157Z] self = <acceptance_test.TestTerminalReporting object at 0x7a3192c6d130>
[2024-11-29T22:12:29.157Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_logfinish_hook0')>
[2024-11-29T22:12:29.157Z]
[2024-11-29T22:12:29.157Z] def test_logfinish_hook(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.157Z] """Ensure the pytest_runtest_logfinish hook is being properly handled."""
[2024-11-29T22:12:29.157Z] pytester.makeconftest(
[2024-11-29T22:12:29.157Z] """
[2024-11-29T22:12:29.157Z] def pytest_runtest_logfinish():
[2024-11-29T22:12:29.157Z] print('pytest_runtest_logfinish hook called')
[2024-11-29T22:12:29.157Z] """
[2024-11-29T22:12:29.157Z] )
[2024-11-29T22:12:29.157Z] pytester.makepyfile(
[2024-11-29T22:12:29.157Z] """
[2024-11-29T22:12:29.157Z] def test_func():
[2024-11-29T22:12:29.157Z] pass
[2024-11-29T22:12:29.157Z] """
[2024-11-29T22:12:29.157Z] )
[2024-11-29T22:12:29.157Z] result = pytester.runpytest("-n1", "-s")
[2024-11-29T22:12:29.157Z] > result.stdout.fnmatch_lines(["*pytest_runtest_logfinish hook called*"])
[2024-11-29T22:12:29.157Z] E Failed: nomatch: '*pytest_runtest_logfinish hook called*'
[2024-11-29T22:12:29.157Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.157Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.157Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_logfinish_hook0'
[2024-11-29T22:12:29.157Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.157Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.158Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.158Z] E remains unmatched: '*pytest_runtest_logfinish hook called*'
[2024-11-29T22:12:29.158Z]
[2024-11-29T22:12:29.158Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:499: Failed
[2024-11-29T22:12:29.158Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.158Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.158Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.158Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_logfinish_hook0
[2024-11-29T22:12:29.158Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.158Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.158Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.158Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.158Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.158Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.158Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.158Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.158Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.158Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.158Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.158Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.158Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.158Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.158Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.158Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.158Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.158Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.158Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.158Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.158Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.158Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.158Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.158Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.158Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.158Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.158Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.158Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.158Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.158Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.158Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.158Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.158Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.158Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.158Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.158Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.158Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.158Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.158Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.158Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.158Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.158Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.158Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.158Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.158Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.158Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.158Z] _______________________ test_teardownfails_one_function ________________________
[2024-11-29T22:12:29.158Z]
[2024-11-29T22:12:29.158Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_teardownfails_one_function0')>
[2024-11-29T22:12:29.158Z]
[2024-11-29T22:12:29.158Z] def test_teardownfails_one_function(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.158Z] p = pytester.makepyfile(
[2024-11-29T22:12:29.158Z] """
[2024-11-29T22:12:29.158Z] def test_func():
[2024-11-29T22:12:29.158Z] pass
[2024-11-29T22:12:29.158Z] def teardown_function(function):
[2024-11-29T22:12:29.158Z] assert 0
[2024-11-29T22:12:29.158Z] """
[2024-11-29T22:12:29.158Z] )
[2024-11-29T22:12:29.158Z] result = pytester.runpytest(p, "-n1", "--tx=popen")
[2024-11-29T22:12:29.158Z] > result.stdout.fnmatch_lines(
[2024-11-29T22:12:29.158Z] ["*def teardown_function(function):*", "*1 passed*1 error*"]
[2024-11-29T22:12:29.158Z] )
[2024-11-29T22:12:29.158Z] E Failed: nomatch: '*def teardown_function(function):*'
[2024-11-29T22:12:29.158Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.158Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.158Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_teardownfails_one_function0'
[2024-11-29T22:12:29.158Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.158Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.159Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.159Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.159Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.159Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.159Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.159Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.159Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.159Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.159Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.159Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.159Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.159Z] E remains unmatched: '*def teardown_function(function):*'
[2024-11-29T22:12:29.159Z]
[2024-11-29T22:12:29.159Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:512: Failed
[2024-11-29T22:12:29.159Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.159Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.159Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.159Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_teardownfails_one_function0
[2024-11-29T22:12:29.159Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.159Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.159Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.159Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.159Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.159Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.159Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.159Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.159Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.159Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.159Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.159Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.159Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.159Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.159Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.159Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.159Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.159Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.159Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.159Z] _________________________ test_session_testscollected __________________________
[2024-11-29T22:12:29.159Z]
[2024-11-29T22:12:29.159Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_session_testscollected0')>
[2024-11-29T22:12:29.159Z]
[2024-11-29T22:12:29.159Z] def test_session_testscollected(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.159Z] """
[2024-11-29T22:12:29.159Z] Make sure controller node is updating the session object with the number
[2024-11-29T22:12:29.159Z] of tests collected from the workers.
[2024-11-29T22:12:29.159Z] """
[2024-11-29T22:12:29.159Z] pytester.makepyfile(
[2024-11-29T22:12:29.159Z] test_foo="""
[2024-11-29T22:12:29.159Z] import pytest
[2024-11-29T22:12:29.159Z] @pytest.mark.parametrize('i', range(3))
[2024-11-29T22:12:29.159Z] def test_ok(i):
[2024-11-29T22:12:29.159Z] pass
[2024-11-29T22:12:29.159Z] """
[2024-11-29T22:12:29.159Z] )
[2024-11-29T22:12:29.159Z] pytester.makeconftest(
[2024-11-29T22:12:29.159Z] """
[2024-11-29T22:12:29.159Z] def pytest_sessionfinish(session):
[2024-11-29T22:12:29.159Z] collected = getattr(session, 'testscollected', None)
[2024-11-29T22:12:29.159Z] with open('testscollected', 'w') as f:
[2024-11-29T22:12:29.159Z] f.write('collected = %s' % collected)
[2024-11-29T22:12:29.159Z] """
[2024-11-29T22:12:29.159Z] )
[2024-11-29T22:12:29.159Z] result = pytester.inline_run("-n1")
[2024-11-29T22:12:29.159Z] > result.assertoutcome(passed=3)
[2024-11-29T22:12:29.159Z] E AssertionError: ([], [], [])
[2024-11-29T22:12:29.159Z] E assert {'failed': 0,... 'skipped': 0} == {'failed': 0,... 'skipped': 0}
[2024-11-29T22:12:29.159Z] E
[2024-11-29T22:12:29.159Z] E Omitting 2 identical items, use -vv to show
[2024-11-29T22:12:29.159Z] E Differing items:
[2024-11-29T22:12:29.159Z] E {'passed': 0} != {'passed': 3}
[2024-11-29T22:12:29.159Z] E Use -v to get more diff
[2024-11-29T22:12:29.159Z]
[2024-11-29T22:12:29.159Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:589: AssertionError
[2024-11-29T22:12:29.159Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.159Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.159Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.159Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_session_testscollected0
[2024-11-29T22:12:29.159Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.159Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.159Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.159Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.159Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.159Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.159Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.159Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.159Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.159Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.159Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.159Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.159Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.159Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.159Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.159Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.159Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.159Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.159Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.159Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.159Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.159Z] ________________________ test_fixture_teardown_failure _________________________
[2024-11-29T22:12:29.159Z]
[2024-11-29T22:12:29.160Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_fixture_teardown_failure0')>
[2024-11-29T22:12:29.160Z]
[2024-11-29T22:12:29.160Z] def test_fixture_teardown_failure(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.160Z] p = pytester.makepyfile(
[2024-11-29T22:12:29.160Z] """
[2024-11-29T22:12:29.160Z] import pytest
[2024-11-29T22:12:29.160Z] @pytest.fixture(scope="module")
[2024-11-29T22:12:29.160Z] def myarg(request):
[2024-11-29T22:12:29.160Z] yield 42
[2024-11-29T22:12:29.160Z] raise ValueError(42)
[2024-11-29T22:12:29.160Z]
[2024-11-29T22:12:29.160Z] def test_hello(myarg):
[2024-11-29T22:12:29.160Z] pass
[2024-11-29T22:12:29.160Z] """
[2024-11-29T22:12:29.160Z] )
[2024-11-29T22:12:29.160Z] result = pytester.runpytest_subprocess(p, "-n1")
[2024-11-29T22:12:29.160Z] > result.stdout.fnmatch_lines(["*ValueError*42*", "*1 passed*1 error*"])
[2024-11-29T22:12:29.160Z] E Failed: nomatch: '*ValueError*42*'
[2024-11-29T22:12:29.160Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.160Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.160Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_fixture_teardown_failure0'
[2024-11-29T22:12:29.160Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.160Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.160Z] E remains unmatched: '*ValueError*42*'
[2024-11-29T22:12:29.160Z]
[2024-11-29T22:12:29.160Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:609: Failed
[2024-11-29T22:12:29.160Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.160Z] running: /usr/bin/python -mpytest --basetemp=/tmp/pytest-of-builduser/pytest-0/test_fixture_teardown_failure0/runpytest-0 /tmp/pytest-of-builduser/pytest-0/test_fixture_teardown_failure0/test_fixture_teardown_failure.py -n1
[2024-11-29T22:12:29.160Z] in: /tmp/pytest-of-builduser/pytest-0/test_fixture_teardown_failure0
[2024-11-29T22:12:29.160Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.160Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.160Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_fixture_teardown_failure0
[2024-11-29T22:12:29.160Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.160Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.160Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.160Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.160Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.160Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.160Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.160Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.160Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.160Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.160Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.160Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.160Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.160Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.160Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.160Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.160Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.160Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.160Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.160Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.160Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.160Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.160Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.160Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.160Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.160Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.160Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.160Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.160Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.160Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.160Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.160Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.160Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.160Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.160Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.160Z] __________________________ test_config_initialization __________________________
[2024-11-29T22:12:29.160Z]
[2024-11-29T22:12:29.160Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_config_initialization0')>
[2024-11-29T22:12:29.160Z] monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7a3191cfb4d0>
[2024-11-29T22:12:29.160Z]
[2024-11-29T22:12:29.160Z] def test_config_initialization(
[2024-11-29T22:12:29.160Z] pytester: pytest.Pytester, monkeypatch: pytest.MonkeyPatch
[2024-11-29T22:12:29.160Z] ) -> None:
[2024-11-29T22:12:29.160Z] """Ensure workers and controller are initialized consistently. Integration test for #445."""
[2024-11-29T22:12:29.160Z] pytester.makepyfile(
[2024-11-29T22:12:29.160Z] **{
[2024-11-29T22:12:29.160Z] "dir_a/test_foo.py": """
[2024-11-29T22:12:29.160Z] def test_1(request):
[2024-11-29T22:12:29.160Z] assert request.config.option.verbose == 2
[2024-11-29T22:12:29.160Z] """
[2024-11-29T22:12:29.160Z] }
[2024-11-29T22:12:29.160Z] )
[2024-11-29T22:12:29.160Z] pytester.makefile(
[2024-11-29T22:12:29.160Z] ".ini",
[2024-11-29T22:12:29.160Z] myconfig="""
[2024-11-29T22:12:29.160Z] [pytest]
[2024-11-29T22:12:29.160Z] testpaths=dir_a
[2024-11-29T22:12:29.160Z] """,
[2024-11-29T22:12:29.160Z] )
[2024-11-29T22:12:29.160Z] monkeypatch.setenv("PYTEST_ADDOPTS", "-v")
[2024-11-29T22:12:29.160Z] result = pytester.runpytest("-n2", "-c", "myconfig.ini", "-v")
[2024-11-29T22:12:29.160Z] > result.stdout.fnmatch_lines(["dir_a/test_foo.py::test_1*", "*= 1 passed in *"])
[2024-11-29T22:12:29.160Z] E Failed: nomatch: 'dir_a/test_foo.py::test_1*'
[2024-11-29T22:12:29.160Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.160Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python'
[2024-11-29T22:12:29.160Z] E and: 'cachedir: .pytest_cache'
[2024-11-29T22:12:29.160Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_config_initialization0'
[2024-11-29T22:12:29.160Z] E and: 'configfile: myconfig.ini'
[2024-11-29T22:12:29.160Z] E and: 'testpaths: dir_a'
[2024-11-29T22:12:29.160Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.160Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.161Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.161Z] E remains unmatched: 'dir_a/test_foo.py::test_1*'
[2024-11-29T22:12:29.161Z]
[2024-11-29T22:12:29.161Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:634: Failed
[2024-11-29T22:12:29.161Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.161Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.161Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.161Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.161Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_config_initialization0
[2024-11-29T22:12:29.161Z] configfile: myconfig.ini
[2024-11-29T22:12:29.161Z] testpaths: dir_a
[2024-11-29T22:12:29.161Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.161Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.161Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.161Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.161Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.161Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.161Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.161Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.161Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.161Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.161Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.161Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.161Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.161Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.161Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.161Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.161Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.161Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.161Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.161Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.161Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.161Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.161Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.161Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.161Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.161Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.161Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.161Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.161Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.161Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.161Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.161Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.161Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.161Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.161Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.161Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.161Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.161Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.161Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.161Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.161Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.161Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.161Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.161Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.161Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.161Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.161Z] __________________________ test_crashing_item[setup] ___________________________
[2024-11-29T22:12:29.161Z]
[2024-11-29T22:12:29.161Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_crashing_item0')>
[2024-11-29T22:12:29.161Z] when = 'setup'
[2024-11-29T22:12:29.161Z]
[2024-11-29T22:12:29.161Z] @pytest.mark.parametrize("when", ["setup", "call", "teardown"])
[2024-11-29T22:12:29.161Z] def test_crashing_item(pytester: pytest.Pytester, when: str) -> None:
[2024-11-29T22:12:29.161Z] """Ensure crashing item is correctly reported during all testing stages."""
[2024-11-29T22:12:29.161Z] code = dict(setup="", call="", teardown="")
[2024-11-29T22:12:29.161Z] code[when] = "os._exit(1)"
[2024-11-29T22:12:29.161Z] p = pytester.makepyfile(
[2024-11-29T22:12:29.161Z] """
[2024-11-29T22:12:29.161Z] import os
[2024-11-29T22:12:29.161Z] import pytest
[2024-11-29T22:12:29.161Z]
[2024-11-29T22:12:29.161Z] @pytest.fixture
[2024-11-29T22:12:29.161Z] def fix():
[2024-11-29T22:12:29.161Z] {setup}
[2024-11-29T22:12:29.161Z] yield
[2024-11-29T22:12:29.161Z] {teardown}
[2024-11-29T22:12:29.161Z]
[2024-11-29T22:12:29.161Z] def test_crash(fix):
[2024-11-29T22:12:29.161Z] {call}
[2024-11-29T22:12:29.161Z] pass
[2024-11-29T22:12:29.161Z]
[2024-11-29T22:12:29.161Z] def test_ok():
[2024-11-29T22:12:29.161Z] pass
[2024-11-29T22:12:29.161Z] """.format(**code)
[2024-11-29T22:12:29.161Z] )
[2024-11-29T22:12:29.161Z] passes = 2 if when == "teardown" else 1
[2024-11-29T22:12:29.161Z] result = pytester.runpytest("-n2", p)
[2024-11-29T22:12:29.161Z] > result.stdout.fnmatch_lines(
[2024-11-29T22:12:29.161Z] ["*crashed*test_crash*", "*1 failed*%d passed*" % passes]
[2024-11-29T22:12:29.161Z] )
[2024-11-29T22:12:29.161Z] E Failed: nomatch: '*crashed*test_crash*'
[2024-11-29T22:12:29.161Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.161Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.161Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_crashing_item0'
[2024-11-29T22:12:29.161Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.161Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.161Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.161Z] E remains unmatched: '*crashed*test_crash*'
[2024-11-29T22:12:29.161Z]
[2024-11-29T22:12:29.161Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:664: Failed
[2024-11-29T22:12:29.161Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.161Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.161Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.162Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_crashing_item0
[2024-11-29T22:12:29.162Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.162Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.162Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.162Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.162Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.162Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.162Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.162Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.162Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.162Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.162Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.162Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.162Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.162Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.162Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.162Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.162Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.162Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.162Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.162Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.162Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.162Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.162Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.162Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.162Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.162Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.162Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.162Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.162Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.162Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.162Z] ___________________________ test_crashing_item[call] ___________________________
[2024-11-29T22:12:29.162Z]
[2024-11-29T22:12:29.162Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_crashing_item1')>
[2024-11-29T22:12:29.162Z] when = 'call'
[2024-11-29T22:12:29.162Z]
[2024-11-29T22:12:29.162Z] @pytest.mark.parametrize("when", ["setup", "call", "teardown"])
[2024-11-29T22:12:29.162Z] def test_crashing_item(pytester: pytest.Pytester, when: str) -> None:
[2024-11-29T22:12:29.162Z] """Ensure crashing item is correctly reported during all testing stages."""
[2024-11-29T22:12:29.162Z] code = dict(setup="", call="", teardown="")
[2024-11-29T22:12:29.162Z] code[when] = "os._exit(1)"
[2024-11-29T22:12:29.162Z] p = pytester.makepyfile(
[2024-11-29T22:12:29.162Z] """
[2024-11-29T22:12:29.162Z] import os
[2024-11-29T22:12:29.162Z] import pytest
[2024-11-29T22:12:29.162Z]
[2024-11-29T22:12:29.162Z] @pytest.fixture
[2024-11-29T22:12:29.162Z] def fix():
[2024-11-29T22:12:29.162Z] {setup}
[2024-11-29T22:12:29.162Z] yield
[2024-11-29T22:12:29.162Z] {teardown}
[2024-11-29T22:12:29.162Z]
[2024-11-29T22:12:29.162Z] def test_crash(fix):
[2024-11-29T22:12:29.162Z] {call}
[2024-11-29T22:12:29.162Z] pass
[2024-11-29T22:12:29.162Z]
[2024-11-29T22:12:29.162Z] def test_ok():
[2024-11-29T22:12:29.162Z] pass
[2024-11-29T22:12:29.162Z] """.format(**code)
[2024-11-29T22:12:29.162Z] )
[2024-11-29T22:12:29.162Z] passes = 2 if when == "teardown" else 1
[2024-11-29T22:12:29.162Z] result = pytester.runpytest("-n2", p)
[2024-11-29T22:12:29.162Z] > result.stdout.fnmatch_lines(
[2024-11-29T22:12:29.162Z] ["*crashed*test_crash*", "*1 failed*%d passed*" % passes]
[2024-11-29T22:12:29.162Z] )
[2024-11-29T22:12:29.162Z] E Failed: nomatch: '*crashed*test_crash*'
[2024-11-29T22:12:29.162Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.162Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.162Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_crashing_item1'
[2024-11-29T22:12:29.162Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.162Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.162Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.162Z] E remains unmatched: '*crashed*test_crash*'
[2024-11-29T22:12:29.162Z]
[2024-11-29T22:12:29.162Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:664: Failed
[2024-11-29T22:12:29.162Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.162Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.162Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.162Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_crashing_item1
[2024-11-29T22:12:29.162Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.162Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.162Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.162Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.162Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.162Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.162Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.162Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.162Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.162Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.162Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.162Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.162Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.162Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.162Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.162Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.162Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.162Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.163Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.163Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.163Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.163Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.163Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.163Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.163Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.163Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.163Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.163Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.163Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.163Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.163Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.163Z] _________________________ test_crashing_item[teardown] _________________________
[2024-11-29T22:12:29.163Z]
[2024-11-29T22:12:29.163Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_crashing_item2')>
[2024-11-29T22:12:29.163Z] when = 'teardown'
[2024-11-29T22:12:29.163Z]
[2024-11-29T22:12:29.163Z] @pytest.mark.parametrize("when", ["setup", "call", "teardown"])
[2024-11-29T22:12:29.163Z] def test_crashing_item(pytester: pytest.Pytester, when: str) -> None:
[2024-11-29T22:12:29.163Z] """Ensure crashing item is correctly reported during all testing stages."""
[2024-11-29T22:12:29.163Z] code = dict(setup="", call="", teardown="")
[2024-11-29T22:12:29.163Z] code[when] = "os._exit(1)"
[2024-11-29T22:12:29.163Z] p = pytester.makepyfile(
[2024-11-29T22:12:29.163Z] """
[2024-11-29T22:12:29.163Z] import os
[2024-11-29T22:12:29.163Z] import pytest
[2024-11-29T22:12:29.163Z]
[2024-11-29T22:12:29.163Z] @pytest.fixture
[2024-11-29T22:12:29.163Z] def fix():
[2024-11-29T22:12:29.163Z] {setup}
[2024-11-29T22:12:29.163Z] yield
[2024-11-29T22:12:29.163Z] {teardown}
[2024-11-29T22:12:29.163Z]
[2024-11-29T22:12:29.163Z] def test_crash(fix):
[2024-11-29T22:12:29.163Z] {call}
[2024-11-29T22:12:29.163Z] pass
[2024-11-29T22:12:29.163Z]
[2024-11-29T22:12:29.163Z] def test_ok():
[2024-11-29T22:12:29.163Z] pass
[2024-11-29T22:12:29.163Z] """.format(**code)
[2024-11-29T22:12:29.163Z] )
[2024-11-29T22:12:29.163Z] passes = 2 if when == "teardown" else 1
[2024-11-29T22:12:29.163Z] result = pytester.runpytest("-n2", p)
[2024-11-29T22:12:29.163Z] > result.stdout.fnmatch_lines(
[2024-11-29T22:12:29.163Z] ["*crashed*test_crash*", "*1 failed*%d passed*" % passes]
[2024-11-29T22:12:29.163Z] )
[2024-11-29T22:12:29.163Z] E Failed: nomatch: '*crashed*test_crash*'
[2024-11-29T22:12:29.163Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.163Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.163Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_crashing_item2'
[2024-11-29T22:12:29.163Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.163Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.163Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.163Z] E remains unmatched: '*crashed*test_crash*'
[2024-11-29T22:12:29.163Z]
[2024-11-29T22:12:29.163Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:664: Failed
[2024-11-29T22:12:29.163Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.163Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.163Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.163Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_crashing_item2
[2024-11-29T22:12:29.163Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.163Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.163Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.163Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.163Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.163Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.163Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.163Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.163Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.163Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.163Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.163Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.163Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.163Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.163Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.163Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.163Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.163Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.163Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.163Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.163Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.163Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.163Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.163Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.163Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.163Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.163Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.163Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.163Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.163Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.163Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.163Z] __________________________ test_multiple_log_reports ___________________________
[2024-11-29T22:12:29.164Z]
[2024-11-29T22:12:29.164Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_multiple_log_reports0')>
[2024-11-29T22:12:29.164Z]
[2024-11-29T22:12:29.164Z] def test_multiple_log_reports(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.164Z] """
[2024-11-29T22:12:29.164Z] Ensure that pytest-xdist supports plugins that emit multiple logreports
[2024-11-29T22:12:29.164Z] (#206).
[2024-11-29T22:12:29.164Z] Inspired by pytest-rerunfailures.
[2024-11-29T22:12:29.164Z] """
[2024-11-29T22:12:29.164Z] pytester.makeconftest(
[2024-11-29T22:12:29.164Z] """
[2024-11-29T22:12:29.164Z] from _pytest.runner import runtestprotocol
[2024-11-29T22:12:29.164Z] def pytest_runtest_protocol(item, nextitem):
[2024-11-29T22:12:29.164Z] item.ihook.pytest_runtest_logstart(nodeid=item.nodeid,
[2024-11-29T22:12:29.164Z] location=item.location)
[2024-11-29T22:12:29.164Z] reports = runtestprotocol(item, nextitem=nextitem)
[2024-11-29T22:12:29.164Z] for report in reports:
[2024-11-29T22:12:29.164Z] item.ihook.pytest_runtest_logreport(report=report)
[2024-11-29T22:12:29.164Z] return True
[2024-11-29T22:12:29.164Z] """
[2024-11-29T22:12:29.164Z] )
[2024-11-29T22:12:29.164Z] pytester.makepyfile(
[2024-11-29T22:12:29.164Z] """
[2024-11-29T22:12:29.164Z] def test():
[2024-11-29T22:12:29.164Z] pass
[2024-11-29T22:12:29.164Z] """
[2024-11-29T22:12:29.164Z] )
[2024-11-29T22:12:29.164Z] result = pytester.runpytest("-n1")
[2024-11-29T22:12:29.164Z] > result.stdout.fnmatch_lines(["*2 passed*"])
[2024-11-29T22:12:29.164Z] E Failed: nomatch: '*2 passed*'
[2024-11-29T22:12:29.164Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.164Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.164Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_multiple_log_reports0'
[2024-11-29T22:12:29.164Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.164Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.164Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.164Z] E remains unmatched: '*2 passed*'
[2024-11-29T22:12:29.164Z]
[2024-11-29T22:12:29.164Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:694: Failed
[2024-11-29T22:12:29.164Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.164Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.164Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.164Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_multiple_log_reports0
[2024-11-29T22:12:29.164Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.164Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.164Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.164Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.164Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.164Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.164Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.164Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.164Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.164Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.164Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.164Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.164Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.164Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.164Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.164Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.164Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.164Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.164Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.164Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.164Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.164Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.164Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.164Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.164Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.164Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.164Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.164Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.164Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.164Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.164Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.164Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.164Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.164Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.164Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.164Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.164Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.164Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.164Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.164Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.164Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.164Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.164Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.164Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.164Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.164Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.164Z] ________________________________ test_skipping _________________________________
[2024-11-29T22:12:29.164Z]
[2024-11-29T22:12:29.164Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_skipping0')>
[2024-11-29T22:12:29.164Z]
[2024-11-29T22:12:29.164Z] def test_skipping(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.164Z] p = pytester.makepyfile(
[2024-11-29T22:12:29.164Z] """
[2024-11-29T22:12:29.164Z] import pytest
[2024-11-29T22:12:29.164Z] def test_crash():
[2024-11-29T22:12:29.164Z] pytest.skip("hello")
[2024-11-29T22:12:29.164Z] """
[2024-11-29T22:12:29.164Z] )
[2024-11-29T22:12:29.164Z] result = pytester.runpytest("-n1", "-rs", p)
[2024-11-29T22:12:29.164Z] > assert result.ret == 0
[2024-11-29T22:12:29.164Z] E assert <ExitCode.INTERNAL_ERROR: 3> == 0
[2024-11-29T22:12:29.164Z] E + where <ExitCode.INTERNAL_ERROR: 3> = <RunResult ret=3 len(stdout.lines)=49 len(stderr.lines)=0 duration=0.04s>.ret
[2024-11-29T22:12:29.164Z]
[2024-11-29T22:12:29.164Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:706: AssertionError
[2024-11-29T22:12:29.164Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.164Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.164Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.164Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_skipping0
[2024-11-29T22:12:29.164Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.164Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.164Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.164Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.164Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.164Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.165Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.165Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.165Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.165Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.165Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.165Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.165Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.165Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.165Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.165Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.165Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.165Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.165Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.165Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.165Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.165Z] _____________________ test_fixture_scope_caching_issue503 ______________________
[2024-11-29T22:12:29.165Z]
[2024-11-29T22:12:29.165Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_fixture_scope_caching_issue5030')>
[2024-11-29T22:12:29.165Z]
[2024-11-29T22:12:29.165Z] def test_fixture_scope_caching_issue503(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.165Z] p1 = pytester.makepyfile(
[2024-11-29T22:12:29.165Z] """
[2024-11-29T22:12:29.165Z] import pytest
[2024-11-29T22:12:29.165Z]
[2024-11-29T22:12:29.165Z] @pytest.fixture(scope='session')
[2024-11-29T22:12:29.165Z] def fix():
[2024-11-29T22:12:29.165Z] assert fix.counter == 0, \
[2024-11-29T22:12:29.165Z] 'session fixture was invoked multiple times'
[2024-11-29T22:12:29.165Z] fix.counter += 1
[2024-11-29T22:12:29.165Z] fix.counter = 0
[2024-11-29T22:12:29.165Z]
[2024-11-29T22:12:29.165Z] def test_a(fix):
[2024-11-29T22:12:29.165Z] pass
[2024-11-29T22:12:29.165Z]
[2024-11-29T22:12:29.165Z] def test_b(fix):
[2024-11-29T22:12:29.165Z] pass
[2024-11-29T22:12:29.165Z] """
[2024-11-29T22:12:29.165Z] )
[2024-11-29T22:12:29.165Z] result = pytester.runpytest(p1, "-v", "-n1")
[2024-11-29T22:12:29.165Z] > assert result.ret == 0
[2024-11-29T22:12:29.165Z] E assert <ExitCode.INTERNAL_ERROR: 3> == 0
[2024-11-29T22:12:29.165Z] E + where <ExitCode.INTERNAL_ERROR: 3> = <RunResult ret=3 len(stdout.lines)=50 len(stderr.lines)=0 duration=0.04s>.ret
[2024-11-29T22:12:29.165Z]
[2024-11-29T22:12:29.165Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:730: AssertionError
[2024-11-29T22:12:29.165Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.165Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.165Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.165Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.165Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_fixture_scope_caching_issue5030
[2024-11-29T22:12:29.165Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.165Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.165Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.165Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.165Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.165Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.165Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.165Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.165Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.165Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.165Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.165Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.165Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.165Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.165Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.165Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.165Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.165Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.165Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.165Z] ______________________ test_issue_594_random_parametrize _______________________
[2024-11-29T22:12:29.165Z]
[2024-11-29T22:12:29.165Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_issue_594_random_parametrize0')>
[2024-11-29T22:12:29.165Z]
[2024-11-29T22:12:29.165Z] def test_issue_594_random_parametrize(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.165Z] """
[2024-11-29T22:12:29.165Z] Make sure that tests that are randomly parametrized display an appropriate
[2024-11-29T22:12:29.165Z] error message, instead of silently skipping the entire test run.
[2024-11-29T22:12:29.165Z] """
[2024-11-29T22:12:29.165Z] p1 = pytester.makepyfile(
[2024-11-29T22:12:29.165Z] """
[2024-11-29T22:12:29.165Z] import pytest
[2024-11-29T22:12:29.165Z] import random
[2024-11-29T22:12:29.165Z]
[2024-11-29T22:12:29.165Z] xs = list(range(10))
[2024-11-29T22:12:29.165Z] random.shuffle(xs)
[2024-11-29T22:12:29.165Z] @pytest.mark.parametrize('x', xs)
[2024-11-29T22:12:29.165Z] def test_foo(x):
[2024-11-29T22:12:29.165Z] assert 1
[2024-11-29T22:12:29.165Z] """
[2024-11-29T22:12:29.165Z] )
[2024-11-29T22:12:29.165Z] result = pytester.runpytest(p1, "-v", "-n4")
[2024-11-29T22:12:29.165Z] > assert result.ret == 1
[2024-11-29T22:12:29.165Z] E assert <ExitCode.INTERNAL_ERROR: 3> == 1
[2024-11-29T22:12:29.165Z] E + where <ExitCode.INTERNAL_ERROR: 3> = <RunResult ret=3 len(stdout.lines)=50 len(stderr.lines)=0 duration=0.04s>.ret
[2024-11-29T22:12:29.165Z]
[2024-11-29T22:12:29.165Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:752: AssertionError
[2024-11-29T22:12:29.165Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.165Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.165Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.165Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.165Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_issue_594_random_parametrize0
[2024-11-29T22:12:29.165Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.165Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.165Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.165Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.165Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.165Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.165Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.165Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.165Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.165Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.165Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.165Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.166Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.166Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.166Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.166Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.166Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.166Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.166Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.166Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.166Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.166Z] _____________________________ test_tmpdir_disabled _____________________________
[2024-11-29T22:12:29.166Z]
[2024-11-29T22:12:29.166Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_tmpdir_disabled0')>
[2024-11-29T22:12:29.166Z]
[2024-11-29T22:12:29.166Z] def test_tmpdir_disabled(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.166Z] """Test xdist doesn't break if internal tmpdir plugin is disabled (#22)."""
[2024-11-29T22:12:29.166Z] p1 = pytester.makepyfile(
[2024-11-29T22:12:29.166Z] """
[2024-11-29T22:12:29.166Z] def test_ok():
[2024-11-29T22:12:29.166Z] pass
[2024-11-29T22:12:29.166Z] """
[2024-11-29T22:12:29.166Z] )
[2024-11-29T22:12:29.166Z] result = pytester.runpytest(p1, "-n1", "-p", "no:tmpdir")
[2024-11-29T22:12:29.166Z] > assert result.ret == 0
[2024-11-29T22:12:29.166Z] E assert <ExitCode.INTERNAL_ERROR: 3> == 0
[2024-11-29T22:12:29.166Z] E + where <ExitCode.INTERNAL_ERROR: 3> = <RunResult ret=3 len(stdout.lines)=49 len(stderr.lines)=0 duration=0.04s>.ret
[2024-11-29T22:12:29.166Z]
[2024-11-29T22:12:29.166Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:765: AssertionError
[2024-11-29T22:12:29.166Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.166Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.166Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.166Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_tmpdir_disabled0
[2024-11-29T22:12:29.166Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.166Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.166Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.166Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.166Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.166Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.166Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.166Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.166Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.166Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.166Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.166Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.166Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.166Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.166Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.166Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.166Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.166Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.166Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.166Z] _________________ test_sub_plugins_disabled[xdist.looponfail] __________________
[2024-11-29T22:12:29.166Z]
[2024-11-29T22:12:29.166Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_sub_plugins_disabled0')>
[2024-11-29T22:12:29.166Z] plugin = 'xdist.looponfail'
[2024-11-29T22:12:29.166Z]
[2024-11-29T22:12:29.166Z] @pytest.mark.parametrize("plugin", ["xdist.looponfail"])
[2024-11-29T22:12:29.166Z] def test_sub_plugins_disabled(pytester: pytest.Pytester, plugin: str) -> None:
[2024-11-29T22:12:29.166Z] """Test that xdist doesn't break if we disable any of its sub-plugins (#32)."""
[2024-11-29T22:12:29.166Z] p1 = pytester.makepyfile(
[2024-11-29T22:12:29.166Z] """
[2024-11-29T22:12:29.166Z] def test_ok():
[2024-11-29T22:12:29.166Z] pass
[2024-11-29T22:12:29.166Z] """
[2024-11-29T22:12:29.166Z] )
[2024-11-29T22:12:29.166Z] result = pytester.runpytest(p1, "-n1", "-p", f"no:{plugin}")
[2024-11-29T22:12:29.166Z] > assert result.ret == 0
[2024-11-29T22:12:29.166Z] E assert <ExitCode.INTERNAL_ERROR: 3> == 0
[2024-11-29T22:12:29.166Z] E + where <ExitCode.INTERNAL_ERROR: 3> = <RunResult ret=3 len(stdout.lines)=49 len(stderr.lines)=0 duration=0.04s>.ret
[2024-11-29T22:12:29.166Z]
[2024-11-29T22:12:29.166Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:779: AssertionError
[2024-11-29T22:12:29.166Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.166Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.166Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.166Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_sub_plugins_disabled0
[2024-11-29T22:12:29.166Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.166Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.166Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.166Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.166Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.166Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.166Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.166Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.166Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.166Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.166Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.166Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.166Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.166Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.166Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.166Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.166Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.166Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.166Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.166Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.166Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.166Z] _______________________ TestWarnings.test_warnings[-n1] ________________________
[2024-11-29T22:12:29.166Z]
[2024-11-29T22:12:29.166Z] self = <acceptance_test.TestWarnings object at 0x7a31925263f0>
[2024-11-29T22:12:29.166Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_warnings1')>
[2024-11-29T22:12:29.166Z] n = '-n1'
[2024-11-29T22:12:29.166Z]
[2024-11-29T22:12:29.166Z] @pytest.mark.parametrize("n", ["-n0", "-n1"])
[2024-11-29T22:12:29.166Z] def test_warnings(self, pytester: pytest.Pytester, n: str) -> None:
[2024-11-29T22:12:29.166Z] pytester.makepyfile(
[2024-11-29T22:12:29.166Z] """
[2024-11-29T22:12:29.166Z] import warnings, py, pytest
[2024-11-29T22:12:29.166Z]
[2024-11-29T22:12:29.167Z] @pytest.mark.filterwarnings('ignore:config.warn has been deprecated')
[2024-11-29T22:12:29.167Z] def test_func(request):
[2024-11-29T22:12:29.167Z] warnings.warn(UserWarning('this is a warning'))
[2024-11-29T22:12:29.167Z] """
[2024-11-29T22:12:29.167Z] )
[2024-11-29T22:12:29.167Z] result = pytester.runpytest(n)
[2024-11-29T22:12:29.167Z] > result.stdout.fnmatch_lines(["*this is a warning*", "*1 passed, 1 warning*"])
[2024-11-29T22:12:29.167Z] E Failed: nomatch: '*this is a warning*'
[2024-11-29T22:12:29.167Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.167Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.167Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_warnings1'
[2024-11-29T22:12:29.167Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.167Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.167Z] E remains unmatched: '*this is a warning*'
[2024-11-29T22:12:29.167Z]
[2024-11-29T22:12:29.167Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:796: Failed
[2024-11-29T22:12:29.167Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.167Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.167Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.167Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_warnings1
[2024-11-29T22:12:29.167Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.167Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.167Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.167Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.167Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.167Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.167Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.167Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.167Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.167Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.167Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.167Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.167Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.167Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.167Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.167Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.167Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.167Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.167Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.167Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.167Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.167Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.167Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.167Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.167Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.167Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.167Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.167Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.167Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.167Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.167Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.167Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.167Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.167Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.167Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.167Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.167Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.167Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.167Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.167Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.167Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.167Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.167Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.167Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.167Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.167Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.167Z] ____________________ TestWarnings.test_custom_subclass[-n1] ____________________
[2024-11-29T22:12:29.167Z]
[2024-11-29T22:12:29.167Z] self = <acceptance_test.TestWarnings object at 0x7a3192f7d040>
[2024-11-29T22:12:29.167Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_custom_subclass1')>
[2024-11-29T22:12:29.167Z] n = '-n1'
[2024-11-29T22:12:29.167Z]
[2024-11-29T22:12:29.167Z] @pytest.mark.parametrize("n", ["-n0", "-n1"])
[2024-11-29T22:12:29.167Z] def test_custom_subclass(self, pytester: pytest.Pytester, n: str) -> None:
[2024-11-29T22:12:29.167Z] """Check that warning subclasses that don't honor the args attribute don't break
[2024-11-29T22:12:29.167Z] pytest-xdist (#344).
[2024-11-29T22:12:29.167Z] """
[2024-11-29T22:12:29.167Z] pytester.makepyfile(
[2024-11-29T22:12:29.167Z] """
[2024-11-29T22:12:29.167Z] import warnings, py, pytest
[2024-11-29T22:12:29.167Z]
[2024-11-29T22:12:29.167Z] class MyWarning(UserWarning):
[2024-11-29T22:12:29.167Z]
[2024-11-29T22:12:29.167Z] def __init__(self, p1, p2):
[2024-11-29T22:12:29.167Z] self.p1 = p1
[2024-11-29T22:12:29.167Z] self.p2 = p2
[2024-11-29T22:12:29.167Z] self.args = ()
[2024-11-29T22:12:29.167Z]
[2024-11-29T22:12:29.167Z] def test_func(request):
[2024-11-29T22:12:29.167Z] warnings.warn(MyWarning("foo", 1))
[2024-11-29T22:12:29.167Z] """
[2024-11-29T22:12:29.167Z] )
[2024-11-29T22:12:29.167Z] pytester.syspathinsert()
[2024-11-29T22:12:29.167Z] result = pytester.runpytest(n)
[2024-11-29T22:12:29.167Z] > result.stdout.fnmatch_lines(["*MyWarning*", "*1 passed, 1 warning*"])
[2024-11-29T22:12:29.167Z] E Failed: nomatch: '*MyWarning*'
[2024-11-29T22:12:29.167Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.167Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.167Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_custom_subclass1'
[2024-11-29T22:12:29.167Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.167Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.168Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.168Z] E remains unmatched: '*MyWarning*'
[2024-11-29T22:12:29.168Z]
[2024-11-29T22:12:29.168Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:852: Failed
[2024-11-29T22:12:29.168Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.168Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.168Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.168Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_custom_subclass1
[2024-11-29T22:12:29.168Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.168Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.168Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.168Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.168Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.168Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.168Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.168Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.168Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.168Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.168Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.168Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.168Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.168Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.168Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.168Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.168Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.168Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.168Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.168Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.168Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.168Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.168Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.168Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.168Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.168Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.168Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.168Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.168Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.168Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.168Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.168Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.168Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.168Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.168Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.168Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.168Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.168Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.168Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.168Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.168Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.168Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.168Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.168Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.168Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.168Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.168Z] _______________ TestWarnings.test_unserializable_arguments[-n1] ________________
[2024-11-29T22:12:29.168Z]
[2024-11-29T22:12:29.168Z] self = <acceptance_test.TestWarnings object at 0x7a3192c6d0a0>
[2024-11-29T22:12:29.168Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_unserializable_arguments1')>
[2024-11-29T22:12:29.168Z] n = '-n1'
[2024-11-29T22:12:29.168Z]
[2024-11-29T22:12:29.168Z] @pytest.mark.parametrize("n", ["-n0", "-n1"])
[2024-11-29T22:12:29.168Z] def test_unserializable_arguments(self, pytester: pytest.Pytester, n: str) -> None:
[2024-11-29T22:12:29.168Z] """Check that warnings with unserializable arguments are handled correctly (#349)."""
[2024-11-29T22:12:29.168Z] pytester.makepyfile(
[2024-11-29T22:12:29.168Z] """
[2024-11-29T22:12:29.168Z] import warnings, pytest
[2024-11-29T22:12:29.168Z]
[2024-11-29T22:12:29.168Z] def test_func(tmp_path):
[2024-11-29T22:12:29.168Z] fn = tmp_path / 'foo.txt'
[2024-11-29T22:12:29.168Z] fn.touch()
[2024-11-29T22:12:29.168Z] with fn.open('r') as f:
[2024-11-29T22:12:29.168Z] warnings.warn(UserWarning("foo", f))
[2024-11-29T22:12:29.168Z] """
[2024-11-29T22:12:29.168Z] )
[2024-11-29T22:12:29.168Z] pytester.syspathinsert()
[2024-11-29T22:12:29.168Z] result = pytester.runpytest(n)
[2024-11-29T22:12:29.168Z] > result.stdout.fnmatch_lines(["*UserWarning*foo.txt*", "*1 passed, 1 warning*"])
[2024-11-29T22:12:29.168Z] E Failed: nomatch: '*UserWarning*foo.txt*'
[2024-11-29T22:12:29.168Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.168Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.168Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_unserializable_arguments1'
[2024-11-29T22:12:29.168Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.168Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.169Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.169Z] E remains unmatched: '*UserWarning*foo.txt*'
[2024-11-29T22:12:29.169Z]
[2024-11-29T22:12:29.169Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:870: Failed
[2024-11-29T22:12:29.169Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.169Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.169Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.169Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_unserializable_arguments1
[2024-11-29T22:12:29.169Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.169Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.169Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.169Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.169Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.169Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.169Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.169Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.169Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.169Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.169Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.169Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.169Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.169Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.169Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.169Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.169Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.169Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.169Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.169Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.169Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.169Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.169Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.169Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.169Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.169Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.169Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.169Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.169Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.169Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.169Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.169Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.169Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.169Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.169Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.169Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.169Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.169Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.169Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.169Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.169Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.169Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.169Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.169Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.169Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.169Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.169Z] ____________ TestWarnings.test_unserializable_warning_details[-n1] _____________
[2024-11-29T22:12:29.169Z]
[2024-11-29T22:12:29.169Z] self = <acceptance_test.TestWarnings object at 0x7a319259e360>
[2024-11-29T22:12:29.169Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_unserializable_warning_details1')>
[2024-11-29T22:12:29.169Z] n = '-n1'
[2024-11-29T22:12:29.169Z]
[2024-11-29T22:12:29.169Z] @pytest.mark.parametrize("n", ["-n0", "-n1"])
[2024-11-29T22:12:29.169Z] def test_unserializable_warning_details(
[2024-11-29T22:12:29.169Z] self, pytester: pytest.Pytester, n: str
[2024-11-29T22:12:29.169Z] ) -> None:
[2024-11-29T22:12:29.169Z] """Check that warnings with unserializable _WARNING_DETAILS are
[2024-11-29T22:12:29.169Z] handled correctly (#379).
[2024-11-29T22:12:29.169Z] """
[2024-11-29T22:12:29.169Z] pytester.makepyfile(
[2024-11-29T22:12:29.169Z] """
[2024-11-29T22:12:29.169Z] import warnings, pytest
[2024-11-29T22:12:29.169Z] import socket
[2024-11-29T22:12:29.169Z] import gc
[2024-11-29T22:12:29.169Z] def abuse_socket():
[2024-11-29T22:12:29.169Z] s = socket.socket()
[2024-11-29T22:12:29.169Z] del s
[2024-11-29T22:12:29.169Z]
[2024-11-29T22:12:29.169Z] # Deliberately provoke a ResourceWarning for an unclosed socket.
[2024-11-29T22:12:29.169Z] # The socket itself will end up attached as a value in
[2024-11-29T22:12:29.169Z] # _WARNING_DETAIL. We need to test that it is not serialized
[2024-11-29T22:12:29.169Z] # (it can't be, so the test will fail if we try to).
[2024-11-29T22:12:29.169Z] @pytest.mark.filterwarnings('always')
[2024-11-29T22:12:29.169Z] def test_func(tmp_path):
[2024-11-29T22:12:29.169Z] abuse_socket()
[2024-11-29T22:12:29.169Z] gc.collect()
[2024-11-29T22:12:29.169Z] """
[2024-11-29T22:12:29.169Z] )
[2024-11-29T22:12:29.169Z] pytester.syspathinsert()
[2024-11-29T22:12:29.169Z] result = pytester.runpytest(n)
[2024-11-29T22:12:29.169Z] > result.stdout.fnmatch_lines(
[2024-11-29T22:12:29.169Z] ["*ResourceWarning*unclosed*", "*1 passed, 1 warning*"]
[2024-11-29T22:12:29.169Z] )
[2024-11-29T22:12:29.169Z] E Failed: nomatch: '*ResourceWarning*unclosed*'
[2024-11-29T22:12:29.169Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.169Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.169Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_unserializable_warning_details1'
[2024-11-29T22:12:29.169Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.169Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.169Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.169Z] E remains unmatched: '*ResourceWarning*unclosed*'
[2024-11-29T22:12:29.169Z]
[2024-11-29T22:12:29.169Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:900: Failed
[2024-11-29T22:12:29.169Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.169Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.169Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.169Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_unserializable_warning_details1
[2024-11-29T22:12:29.169Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.169Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.170Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.170Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.170Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.170Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.170Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.170Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.170Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.170Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.170Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.170Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.170Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.170Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.170Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.170Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.170Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.170Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.170Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.170Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.170Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.170Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.170Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.170Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.170Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.170Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.170Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.170Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.170Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.170Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.170Z] _______________________ TestNodeFailure.test_load_single _______________________
[2024-11-29T22:12:29.170Z]
[2024-11-29T22:12:29.170Z] self = <acceptance_test.TestNodeFailure object at 0x7a319259fe30>
[2024-11-29T22:12:29.170Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_load_single0')>
[2024-11-29T22:12:29.170Z]
[2024-11-29T22:12:29.170Z] def test_load_single(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.170Z] f = pytester.makepyfile(
[2024-11-29T22:12:29.170Z] """
[2024-11-29T22:12:29.170Z] import os
[2024-11-29T22:12:29.170Z] def test_a(): os._exit(1)
[2024-11-29T22:12:29.170Z] def test_b(): pass
[2024-11-29T22:12:29.170Z] """
[2024-11-29T22:12:29.170Z] )
[2024-11-29T22:12:29.170Z] res = pytester.runpytest(f, "-n1")
[2024-11-29T22:12:29.170Z] > res.stdout.fnmatch_lines(
[2024-11-29T22:12:29.170Z] [
[2024-11-29T22:12:29.170Z] "replacing crashed worker gw*",
[2024-11-29T22:12:29.170Z] "worker*crashed while running*",
[2024-11-29T22:12:29.170Z] "*1 failed*1 passed*",
[2024-11-29T22:12:29.170Z] ]
[2024-11-29T22:12:29.170Z] )
[2024-11-29T22:12:29.170Z] E Failed: nomatch: 'replacing crashed worker gw*'
[2024-11-29T22:12:29.170Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.170Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.170Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_load_single0'
[2024-11-29T22:12:29.170Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.170Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.170Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.170Z] E remains unmatched: 'replacing crashed worker gw*'
[2024-11-29T22:12:29.170Z]
[2024-11-29T22:12:29.170Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:915: Failed
[2024-11-29T22:12:29.170Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.170Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.170Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.170Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_load_single0
[2024-11-29T22:12:29.170Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.170Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.170Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.170Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.170Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.170Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.170Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.170Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.170Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.170Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.170Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.170Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.170Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.170Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.170Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.170Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.170Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.170Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.170Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.170Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.170Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.170Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.170Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.170Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.171Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.171Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.171Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.171Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.171Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.171Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.171Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.171Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.171Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.171Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.171Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.171Z] ______________________ TestNodeFailure.test_load_multiple ______________________
[2024-11-29T22:12:29.171Z]
[2024-11-29T22:12:29.171Z] self = <acceptance_test.TestNodeFailure object at 0x7a31925c0650>
[2024-11-29T22:12:29.171Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_load_multiple0')>
[2024-11-29T22:12:29.171Z]
[2024-11-29T22:12:29.171Z] def test_load_multiple(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.171Z] f = pytester.makepyfile(
[2024-11-29T22:12:29.171Z] """
[2024-11-29T22:12:29.171Z] import os
[2024-11-29T22:12:29.171Z] def test_a(): pass
[2024-11-29T22:12:29.171Z] def test_b(): os._exit(1)
[2024-11-29T22:12:29.171Z] def test_c(): pass
[2024-11-29T22:12:29.171Z] def test_d(): pass
[2024-11-29T22:12:29.171Z] """
[2024-11-29T22:12:29.171Z] )
[2024-11-29T22:12:29.171Z] res = pytester.runpytest(f, "-n2")
[2024-11-29T22:12:29.171Z] > res.stdout.fnmatch_lines(
[2024-11-29T22:12:29.171Z] [
[2024-11-29T22:12:29.171Z] "replacing crashed worker gw*",
[2024-11-29T22:12:29.171Z] "worker*crashed while running*",
[2024-11-29T22:12:29.171Z] "*1 failed*3 passed*",
[2024-11-29T22:12:29.171Z] ]
[2024-11-29T22:12:29.171Z] )
[2024-11-29T22:12:29.171Z] E Failed: nomatch: 'replacing crashed worker gw*'
[2024-11-29T22:12:29.171Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.171Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.171Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_load_multiple0'
[2024-11-29T22:12:29.171Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.171Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.171Z] E remains unmatched: 'replacing crashed worker gw*'
[2024-11-29T22:12:29.171Z]
[2024-11-29T22:12:29.171Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:934: Failed
[2024-11-29T22:12:29.171Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.171Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.171Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.171Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_load_multiple0
[2024-11-29T22:12:29.171Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.171Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.171Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.171Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.171Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.171Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.171Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.171Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.171Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.171Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.171Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.171Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.171Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.171Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.171Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.171Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.171Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.171Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.171Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.171Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.171Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.171Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.171Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.171Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.171Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.171Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.171Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.171Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.171Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.171Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.171Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.171Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.171Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.171Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.171Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.171Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.171Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.171Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.171Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.171Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.171Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.171Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.171Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.171Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.171Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.171Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.171Z] _______________________ TestNodeFailure.test_each_single _______________________
[2024-11-29T22:12:29.171Z]
[2024-11-29T22:12:29.171Z] self = <acceptance_test.TestNodeFailure object at 0x7a31925c2960>
[2024-11-29T22:12:29.171Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_each_single0')>
[2024-11-29T22:12:29.171Z]
[2024-11-29T22:12:29.171Z] def test_each_single(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.171Z] f = pytester.makepyfile(
[2024-11-29T22:12:29.171Z] """
[2024-11-29T22:12:29.171Z] import os
[2024-11-29T22:12:29.171Z] def test_a(): os._exit(1)
[2024-11-29T22:12:29.171Z] def test_b(): pass
[2024-11-29T22:12:29.171Z] """
[2024-11-29T22:12:29.171Z] )
[2024-11-29T22:12:29.171Z] res = pytester.runpytest(f, "--dist=each", "--tx=popen")
[2024-11-29T22:12:29.171Z] > res.stdout.fnmatch_lines(
[2024-11-29T22:12:29.171Z] [
[2024-11-29T22:12:29.171Z] "replacing crashed worker gw*",
[2024-11-29T22:12:29.171Z] "worker*crashed while running*",
[2024-11-29T22:12:29.171Z] "*1 failed*1 passed*",
[2024-11-29T22:12:29.171Z] ]
[2024-11-29T22:12:29.171Z] )
[2024-11-29T22:12:29.171Z] E Failed: nomatch: 'replacing crashed worker gw*'
[2024-11-29T22:12:29.171Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.171Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.171Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_each_single0'
[2024-11-29T22:12:29.171Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.171Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.172Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.172Z] E remains unmatched: 'replacing crashed worker gw*'
[2024-11-29T22:12:29.172Z]
[2024-11-29T22:12:29.172Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:951: Failed
[2024-11-29T22:12:29.172Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.172Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.172Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.172Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_each_single0
[2024-11-29T22:12:29.172Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.172Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.172Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.172Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.172Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.172Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.172Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.172Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.172Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.172Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.172Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.172Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.172Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.172Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.172Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.172Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.172Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.172Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.172Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.172Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.172Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.172Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.172Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.172Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.172Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.172Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.172Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.172Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.172Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.172Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.172Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.172Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.172Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.172Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.172Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.172Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.172Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.172Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.172Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.172Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.172Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.172Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.172Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.172Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.172Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.172Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.172Z] ___________________ TestNodeFailure.test_max_worker_restart ____________________
[2024-11-29T22:12:29.172Z]
[2024-11-29T22:12:29.172Z] self = <acceptance_test.TestNodeFailure object at 0x7a31925c0410>
[2024-11-29T22:12:29.172Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_max_worker_restart0')>
[2024-11-29T22:12:29.172Z]
[2024-11-29T22:12:29.172Z] def test_max_worker_restart(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.172Z] f = pytester.makepyfile(
[2024-11-29T22:12:29.172Z] """
[2024-11-29T22:12:29.172Z] import os
[2024-11-29T22:12:29.172Z] def test_a(): pass
[2024-11-29T22:12:29.172Z] def test_b(): os._exit(1)
[2024-11-29T22:12:29.172Z] def test_c(): os._exit(1)
[2024-11-29T22:12:29.172Z] def test_d(): pass
[2024-11-29T22:12:29.172Z] """
[2024-11-29T22:12:29.172Z] )
[2024-11-29T22:12:29.172Z] res = pytester.runpytest(f, "-n4", "--max-worker-restart=1")
[2024-11-29T22:12:29.172Z] > res.stdout.fnmatch_lines(
[2024-11-29T22:12:29.172Z] [
[2024-11-29T22:12:29.172Z] "replacing crashed worker*",
[2024-11-29T22:12:29.172Z] "maximum crashed workers reached: 1*",
[2024-11-29T22:12:29.172Z] "worker*crashed while running*",
[2024-11-29T22:12:29.172Z] "worker*crashed while running*",
[2024-11-29T22:12:29.172Z] "*2 failed*2 passed*",
[2024-11-29T22:12:29.172Z] ]
[2024-11-29T22:12:29.172Z] )
[2024-11-29T22:12:29.172Z] E Failed: nomatch: 'replacing crashed worker*'
[2024-11-29T22:12:29.172Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.172Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.172Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_max_worker_restart0'
[2024-11-29T22:12:29.172Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.172Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.173Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.173Z] E remains unmatched: 'replacing crashed worker*'
[2024-11-29T22:12:29.173Z]
[2024-11-29T22:12:29.173Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:988: Failed
[2024-11-29T22:12:29.173Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.173Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.173Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.173Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_max_worker_restart0
[2024-11-29T22:12:29.173Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.173Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.173Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.173Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.173Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.173Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.173Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.173Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.173Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.173Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.173Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.173Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.173Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.173Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.173Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.173Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.173Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.173Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.173Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.173Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.173Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.173Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.173Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.173Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.173Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.173Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.173Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.173Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.173Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.173Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.173Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.173Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.173Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.173Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.173Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.173Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.173Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.173Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.173Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.173Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.173Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.173Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.173Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.173Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.173Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.173Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.173Z] _____________ TestNodeFailure.test_max_worker_restart_tests_queued _____________
[2024-11-29T22:12:29.173Z]
[2024-11-29T22:12:29.173Z] self = <acceptance_test.TestNodeFailure object at 0x7a31925c0680>
[2024-11-29T22:12:29.173Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_max_worker_restart_tests_queued0')>
[2024-11-29T22:12:29.173Z]
[2024-11-29T22:12:29.173Z] def test_max_worker_restart_tests_queued(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.173Z] f = pytester.makepyfile(
[2024-11-29T22:12:29.173Z] """
[2024-11-29T22:12:29.173Z] import os, pytest
[2024-11-29T22:12:29.173Z] @pytest.mark.parametrize('i', range(10))
[2024-11-29T22:12:29.173Z] def test(i): os._exit(1)
[2024-11-29T22:12:29.173Z] """
[2024-11-29T22:12:29.173Z] )
[2024-11-29T22:12:29.173Z] res = pytester.runpytest(f, "-n2", "--max-worker-restart=3")
[2024-11-29T22:12:29.173Z] > res.stdout.fnmatch_lines(
[2024-11-29T22:12:29.173Z] [
[2024-11-29T22:12:29.173Z] "replacing crashed worker*",
[2024-11-29T22:12:29.173Z] "maximum crashed workers reached: 3*",
[2024-11-29T22:12:29.173Z] "worker*crashed while running*",
[2024-11-29T22:12:29.173Z] "worker*crashed while running*",
[2024-11-29T22:12:29.173Z] "* xdist: maximum crashed workers reached: 3 *",
[2024-11-29T22:12:29.173Z] "* 4 failed in *",
[2024-11-29T22:12:29.173Z] ]
[2024-11-29T22:12:29.173Z] )
[2024-11-29T22:12:29.173Z] E Failed: nomatch: 'replacing crashed worker*'
[2024-11-29T22:12:29.173Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.173Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.173Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_max_worker_restart_tests_queued0'
[2024-11-29T22:12:29.173Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.173Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.173Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.173Z] E remains unmatched: 'replacing crashed worker*'
[2024-11-29T22:12:29.174Z]
[2024-11-29T22:12:29.174Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1007: Failed
[2024-11-29T22:12:29.174Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.174Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.174Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.174Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_max_worker_restart_tests_queued0
[2024-11-29T22:12:29.174Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.174Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.174Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.174Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.174Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.174Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.174Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.174Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.174Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.174Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.174Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.174Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.174Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.174Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.174Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.174Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.174Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.174Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.174Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.174Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.174Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.174Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.174Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.174Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.174Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.174Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.174Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.174Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.174Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.174Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.174Z] _________________ TestNodeFailure.test_max_worker_restart_die __________________
[2024-11-29T22:12:29.174Z]
[2024-11-29T22:12:29.174Z] self = <acceptance_test.TestNodeFailure object at 0x7a31925c08c0>
[2024-11-29T22:12:29.174Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_max_worker_restart_die0')>
[2024-11-29T22:12:29.174Z]
[2024-11-29T22:12:29.174Z] def test_max_worker_restart_die(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.174Z] f = pytester.makepyfile(
[2024-11-29T22:12:29.174Z] """
[2024-11-29T22:12:29.174Z] import os
[2024-11-29T22:12:29.174Z] os._exit(1)
[2024-11-29T22:12:29.174Z] """
[2024-11-29T22:12:29.174Z] )
[2024-11-29T22:12:29.174Z] res = pytester.runpytest(f, "-n4", "--max-worker-restart=0")
[2024-11-29T22:12:29.174Z] > res.stdout.fnmatch_lines(
[2024-11-29T22:12:29.174Z] [
[2024-11-29T22:12:29.174Z] "* xdist: worker gw* crashed and worker restarting disabled *",
[2024-11-29T22:12:29.174Z] "* no tests ran in *",
[2024-11-29T22:12:29.174Z] ]
[2024-11-29T22:12:29.174Z] )
[2024-11-29T22:12:29.174Z] E Failed: nomatch: '* xdist: worker gw* crashed and worker restarting disabled *'
[2024-11-29T22:12:29.174Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.174Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.174Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_max_worker_restart_die0'
[2024-11-29T22:12:29.174Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.174Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.174Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.174Z] E remains unmatched: '* xdist: worker gw* crashed and worker restarting disabled *'
[2024-11-29T22:12:29.174Z]
[2024-11-29T22:12:29.174Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1027: Failed
[2024-11-29T22:12:29.174Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.174Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.174Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.174Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_max_worker_restart_die0
[2024-11-29T22:12:29.174Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.174Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.174Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.174Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.174Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.174Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.174Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.174Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.174Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.174Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.174Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.174Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.174Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.174Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.174Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.174Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.174Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.174Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.174Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.174Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.175Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.175Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.175Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.175Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.175Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.175Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.175Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.175Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.175Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.175Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.175Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.175Z] _____________________ TestNodeFailure.test_disable_restart _____________________
[2024-11-29T22:12:29.175Z]
[2024-11-29T22:12:29.175Z] self = <acceptance_test.TestNodeFailure object at 0x7a31925c0ad0>
[2024-11-29T22:12:29.175Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_disable_restart0')>
[2024-11-29T22:12:29.175Z]
[2024-11-29T22:12:29.175Z] def test_disable_restart(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.175Z] f = pytester.makepyfile(
[2024-11-29T22:12:29.175Z] """
[2024-11-29T22:12:29.175Z] import os
[2024-11-29T22:12:29.175Z] def test_a(): pass
[2024-11-29T22:12:29.175Z] def test_b(): os._exit(1)
[2024-11-29T22:12:29.175Z] def test_c(): pass
[2024-11-29T22:12:29.175Z] """
[2024-11-29T22:12:29.175Z] )
[2024-11-29T22:12:29.175Z] res = pytester.runpytest(f, "-n4", "--max-worker-restart=0")
[2024-11-29T22:12:29.175Z] > res.stdout.fnmatch_lines(
[2024-11-29T22:12:29.175Z] [
[2024-11-29T22:12:29.175Z] "worker gw* crashed and worker restarting disabled",
[2024-11-29T22:12:29.175Z] "*worker*crashed while running*",
[2024-11-29T22:12:29.175Z] "* xdist: worker gw* crashed and worker restarting disabled *",
[2024-11-29T22:12:29.175Z] "* 1 failed, 2 passed in *",
[2024-11-29T22:12:29.175Z] ]
[2024-11-29T22:12:29.175Z] )
[2024-11-29T22:12:29.175Z] E Failed: nomatch: 'worker gw* crashed and worker restarting disabled'
[2024-11-29T22:12:29.175Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.175Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.175Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_disable_restart0'
[2024-11-29T22:12:29.175Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.175Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.175Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.175Z] E remains unmatched: 'worker gw* crashed and worker restarting disabled'
[2024-11-29T22:12:29.175Z]
[2024-11-29T22:12:29.175Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1044: Failed
[2024-11-29T22:12:29.175Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.175Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.175Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.175Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_disable_restart0
[2024-11-29T22:12:29.175Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.175Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.175Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.175Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.175Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.175Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.175Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.175Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.175Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.175Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.175Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.175Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.175Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.175Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.175Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.175Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.175Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.175Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.175Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.175Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.175Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.175Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.175Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.175Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.175Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.175Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.175Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.175Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.175Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.175Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.175Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.175Z] __________________________ test_worker_id_fixture[2] ___________________________
[2024-11-29T22:12:29.175Z]
[2024-11-29T22:12:29.175Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_worker_id_fixture1')>
[2024-11-29T22:12:29.175Z] n = 2
[2024-11-29T22:12:29.175Z]
[2024-11-29T22:12:29.175Z] @pytest.mark.parametrize("n", [0, 2])
[2024-11-29T22:12:29.175Z] def test_worker_id_fixture(pytester: pytest.Pytester, n: int) -> None:
[2024-11-29T22:12:29.175Z] import glob
[2024-11-29T22:12:29.175Z]
[2024-11-29T22:12:29.175Z] f = pytester.makepyfile(
[2024-11-29T22:12:29.175Z] """
[2024-11-29T22:12:29.175Z] import pytest
[2024-11-29T22:12:29.175Z] @pytest.mark.parametrize("run_num", range(2))
[2024-11-29T22:12:29.175Z] def test_worker_id1(worker_id, run_num):
[2024-11-29T22:12:29.175Z] with open("worker_id%s.txt" % run_num, "w") as f:
[2024-11-29T22:12:29.175Z] f.write(worker_id)
[2024-11-29T22:12:29.175Z] """
[2024-11-29T22:12:29.175Z] )
[2024-11-29T22:12:29.175Z] result = pytester.runpytest(f, "-n%d" % n)
[2024-11-29T22:12:29.175Z] > result.stdout.fnmatch_lines("* 2 passed in *")
[2024-11-29T22:12:29.175Z] E Failed: nomatch: '* 2 passed in *'
[2024-11-29T22:12:29.175Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.175Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.176Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_worker_id_fixture1'
[2024-11-29T22:12:29.176Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.176Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.176Z] E remains unmatched: '* 2 passed in *'
[2024-11-29T22:12:29.176Z]
[2024-11-29T22:12:29.176Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1068: Failed
[2024-11-29T22:12:29.176Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.176Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.176Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.176Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_worker_id_fixture1
[2024-11-29T22:12:29.176Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.176Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.176Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.176Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.176Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.176Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.176Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.176Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.176Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.176Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.176Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.176Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.176Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.176Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.176Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.176Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.176Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.176Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.176Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.176Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.176Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.176Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.176Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.176Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.176Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.176Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.176Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.176Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.176Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.176Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.176Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.176Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.176Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.176Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.176Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.176Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.176Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.176Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.176Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.176Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.176Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.176Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.176Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.176Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.176Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.176Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.176Z] _________________________ test_testrun_uid_fixture[2] __________________________
[2024-11-29T22:12:29.176Z]
[2024-11-29T22:12:29.176Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_testrun_uid_fixture1')>
[2024-11-29T22:12:29.176Z] n = 2
[2024-11-29T22:12:29.176Z]
[2024-11-29T22:12:29.176Z] @pytest.mark.parametrize("n", [0, 2])
[2024-11-29T22:12:29.176Z] def test_testrun_uid_fixture(pytester: pytest.Pytester, n: int) -> None:
[2024-11-29T22:12:29.176Z] import glob
[2024-11-29T22:12:29.176Z]
[2024-11-29T22:12:29.176Z] f = pytester.makepyfile(
[2024-11-29T22:12:29.176Z] """
[2024-11-29T22:12:29.176Z] import pytest
[2024-11-29T22:12:29.176Z] @pytest.mark.parametrize("run_num", range(2))
[2024-11-29T22:12:29.176Z] def test_testrun_uid1(testrun_uid, run_num):
[2024-11-29T22:12:29.176Z] with open("testrun_uid%s.txt" % run_num, "w") as f:
[2024-11-29T22:12:29.176Z] f.write(testrun_uid)
[2024-11-29T22:12:29.176Z] """
[2024-11-29T22:12:29.176Z] )
[2024-11-29T22:12:29.176Z] result = pytester.runpytest(f, "-n%d" % n)
[2024-11-29T22:12:29.176Z] > result.stdout.fnmatch_lines("* 2 passed in *")
[2024-11-29T22:12:29.176Z] E Failed: nomatch: '* 2 passed in *'
[2024-11-29T22:12:29.176Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.176Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.176Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_testrun_uid_fixture1'
[2024-11-29T22:12:29.176Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.176Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.177Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.177Z] E remains unmatched: '* 2 passed in *'
[2024-11-29T22:12:29.177Z]
[2024-11-29T22:12:29.177Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1093: Failed
[2024-11-29T22:12:29.177Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.177Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.177Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.177Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_testrun_uid_fixture1
[2024-11-29T22:12:29.177Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.177Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.177Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.177Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.177Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.177Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.177Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.177Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.177Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.177Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.177Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.177Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.177Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.177Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.177Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.177Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.177Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.177Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.177Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.177Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.177Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.177Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.177Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.177Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.177Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.177Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.177Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.177Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.177Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.177Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.177Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.177Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.177Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.177Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.177Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.177Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.177Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.177Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.177Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.177Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.177Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.177Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.177Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.177Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.177Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.177Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.177Z] ________________________ test_error_report_styles[auto] ________________________
[2024-11-29T22:12:29.177Z]
[2024-11-29T22:12:29.177Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_error_report_styles0')>
[2024-11-29T22:12:29.177Z] tb = 'auto'
[2024-11-29T22:12:29.177Z]
[2024-11-29T22:12:29.177Z] @pytest.mark.parametrize("tb", ["auto", "long", "short", "no", "line", "native"])
[2024-11-29T22:12:29.177Z] def test_error_report_styles(pytester: pytest.Pytester, tb: str) -> None:
[2024-11-29T22:12:29.177Z] pytester.makepyfile(
[2024-11-29T22:12:29.177Z] """
[2024-11-29T22:12:29.177Z] import pytest
[2024-11-29T22:12:29.177Z] def test_error_report_styles():
[2024-11-29T22:12:29.177Z] raise RuntimeError('some failure happened')
[2024-11-29T22:12:29.177Z] """
[2024-11-29T22:12:29.177Z] )
[2024-11-29T22:12:29.177Z] result = pytester.runpytest("-n1", "--tb=%s" % tb)
[2024-11-29T22:12:29.177Z] if tb != "no":
[2024-11-29T22:12:29.177Z] > result.stdout.fnmatch_lines("*some failure happened*")
[2024-11-29T22:12:29.177Z] E Failed: nomatch: '*some failure happened*'
[2024-11-29T22:12:29.177Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.177Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.177Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_error_report_styles0'
[2024-11-29T22:12:29.177Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.177Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.177Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.177Z] E remains unmatched: '*some failure happened*'
[2024-11-29T22:12:29.177Z]
[2024-11-29T22:12:29.178Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1113: Failed
[2024-11-29T22:12:29.178Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.178Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.178Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.178Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_error_report_styles0
[2024-11-29T22:12:29.178Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.178Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.178Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.178Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.178Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.178Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.178Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.178Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.178Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.178Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.178Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.178Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.178Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.178Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.178Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.178Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.178Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.178Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.178Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.178Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.178Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.178Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.178Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.178Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.178Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.178Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.178Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.178Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.178Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.178Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.178Z] ________________________ test_error_report_styles[long] ________________________
[2024-11-29T22:12:29.178Z]
[2024-11-29T22:12:29.178Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_error_report_styles1')>
[2024-11-29T22:12:29.178Z] tb = 'long'
[2024-11-29T22:12:29.178Z]
[2024-11-29T22:12:29.178Z] @pytest.mark.parametrize("tb", ["auto", "long", "short", "no", "line", "native"])
[2024-11-29T22:12:29.178Z] def test_error_report_styles(pytester: pytest.Pytester, tb: str) -> None:
[2024-11-29T22:12:29.178Z] pytester.makepyfile(
[2024-11-29T22:12:29.178Z] """
[2024-11-29T22:12:29.178Z] import pytest
[2024-11-29T22:12:29.178Z] def test_error_report_styles():
[2024-11-29T22:12:29.178Z] raise RuntimeError('some failure happened')
[2024-11-29T22:12:29.178Z] """
[2024-11-29T22:12:29.178Z] )
[2024-11-29T22:12:29.178Z] result = pytester.runpytest("-n1", "--tb=%s" % tb)
[2024-11-29T22:12:29.178Z] if tb != "no":
[2024-11-29T22:12:29.178Z] > result.stdout.fnmatch_lines("*some failure happened*")
[2024-11-29T22:12:29.178Z] E Failed: nomatch: '*some failure happened*'
[2024-11-29T22:12:29.178Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.178Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.178Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_error_report_styles1'
[2024-11-29T22:12:29.178Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.178Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.178Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.178Z] E remains unmatched: '*some failure happened*'
[2024-11-29T22:12:29.178Z]
[2024-11-29T22:12:29.178Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1113: Failed
[2024-11-29T22:12:29.178Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.178Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.178Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.178Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_error_report_styles1
[2024-11-29T22:12:29.178Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.178Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.178Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.178Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.178Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.178Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.178Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.178Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.178Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.178Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.178Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.178Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.178Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.178Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.178Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.178Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.178Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.178Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.178Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.178Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.179Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.179Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.179Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.179Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.179Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.179Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.179Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.179Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.179Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.179Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.179Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.179Z] _______________________ test_error_report_styles[short] ________________________
[2024-11-29T22:12:29.179Z]
[2024-11-29T22:12:29.179Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_error_report_styles2')>
[2024-11-29T22:12:29.179Z] tb = 'short'
[2024-11-29T22:12:29.179Z]
[2024-11-29T22:12:29.179Z] @pytest.mark.parametrize("tb", ["auto", "long", "short", "no", "line", "native"])
[2024-11-29T22:12:29.179Z] def test_error_report_styles(pytester: pytest.Pytester, tb: str) -> None:
[2024-11-29T22:12:29.179Z] pytester.makepyfile(
[2024-11-29T22:12:29.179Z] """
[2024-11-29T22:12:29.179Z] import pytest
[2024-11-29T22:12:29.179Z] def test_error_report_styles():
[2024-11-29T22:12:29.179Z] raise RuntimeError('some failure happened')
[2024-11-29T22:12:29.179Z] """
[2024-11-29T22:12:29.179Z] )
[2024-11-29T22:12:29.179Z] result = pytester.runpytest("-n1", "--tb=%s" % tb)
[2024-11-29T22:12:29.179Z] if tb != "no":
[2024-11-29T22:12:29.179Z] > result.stdout.fnmatch_lines("*some failure happened*")
[2024-11-29T22:12:29.179Z] E Failed: nomatch: '*some failure happened*'
[2024-11-29T22:12:29.179Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.179Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.179Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_error_report_styles2'
[2024-11-29T22:12:29.179Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.179Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.179Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.179Z] E remains unmatched: '*some failure happened*'
[2024-11-29T22:12:29.179Z]
[2024-11-29T22:12:29.179Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1113: Failed
[2024-11-29T22:12:29.179Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.179Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.179Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.179Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_error_report_styles2
[2024-11-29T22:12:29.179Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.179Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.179Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.179Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.179Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.179Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.179Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.179Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.179Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.179Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.179Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.179Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.179Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.179Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.179Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.179Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.179Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.179Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.179Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.179Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.179Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.179Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.179Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.179Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.179Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.179Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.179Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.179Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.179Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.179Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.179Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.179Z] _________________________ test_error_report_styles[no] _________________________
[2024-11-29T22:12:29.179Z]
[2024-11-29T22:12:29.179Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_error_report_styles3')>
[2024-11-29T22:12:29.179Z] tb = 'no'
[2024-11-29T22:12:29.179Z]
[2024-11-29T22:12:29.179Z] @pytest.mark.parametrize("tb", ["auto", "long", "short", "no", "line", "native"])
[2024-11-29T22:12:29.179Z] def test_error_report_styles(pytester: pytest.Pytester, tb: str) -> None:
[2024-11-29T22:12:29.179Z] pytester.makepyfile(
[2024-11-29T22:12:29.179Z] """
[2024-11-29T22:12:29.179Z] import pytest
[2024-11-29T22:12:29.179Z] def test_error_report_styles():
[2024-11-29T22:12:29.179Z] raise RuntimeError('some failure happened')
[2024-11-29T22:12:29.179Z] """
[2024-11-29T22:12:29.179Z] )
[2024-11-29T22:12:29.179Z] result = pytester.runpytest("-n1", "--tb=%s" % tb)
[2024-11-29T22:12:29.179Z] if tb != "no":
[2024-11-29T22:12:29.179Z] result.stdout.fnmatch_lines("*some failure happened*")
[2024-11-29T22:12:29.179Z] > result.assert_outcomes(failed=1)
[2024-11-29T22:12:29.179Z]
[2024-11-29T22:12:29.179Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1114:
[2024-11-29T22:12:29.179Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.179Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:564: in parseoutcomes
[2024-11-29T22:12:29.179Z] return self.parse_summary_nouns(self.outlines)
[2024-11-29T22:12:29.179Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.180Z]
[2024-11-29T22:12:29.180Z] cls = <class '_pytest.pytester.RunResult'>
[2024-11-29T22:12:29.180Z] lines = ['============================= test session starts ==============================', 'platform linux -- Python 3.12.7,...l last):', 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session', ...]
[2024-11-29T22:12:29.180Z]
[2024-11-29T22:12:29.180Z] @classmethod
[2024-11-29T22:12:29.180Z] def parse_summary_nouns(cls, lines) -> dict[str, int]:
[2024-11-29T22:12:29.180Z] """Extract the nouns from a pytest terminal summary line.
[2024-11-29T22:12:29.180Z]
[2024-11-29T22:12:29.180Z] It always returns the plural noun for consistency::
[2024-11-29T22:12:29.180Z]
[2024-11-29T22:12:29.180Z] ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ====
[2024-11-29T22:12:29.180Z]
[2024-11-29T22:12:29.180Z] Will return ``{"failed": 1, "passed": 1, "warnings": 1, "errors": 1}``.
[2024-11-29T22:12:29.180Z] """
[2024-11-29T22:12:29.180Z] for line in reversed(lines):
[2024-11-29T22:12:29.180Z] if rex_session_duration.search(line):
[2024-11-29T22:12:29.180Z] outcomes = rex_outcome.findall(line)
[2024-11-29T22:12:29.180Z] ret = {noun: int(count) for (count, noun) in outcomes}
[2024-11-29T22:12:29.180Z] break
[2024-11-29T22:12:29.180Z] else:
[2024-11-29T22:12:29.180Z] > raise ValueError("Pytest terminal summary report not found")
[2024-11-29T22:12:29.180Z] E ValueError: Pytest terminal summary report not found
[2024-11-29T22:12:29.180Z]
[2024-11-29T22:12:29.180Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:582: ValueError
[2024-11-29T22:12:29.180Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.180Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.180Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.180Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_error_report_styles3
[2024-11-29T22:12:29.180Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.180Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.180Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.180Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.180Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.180Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.180Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.180Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.180Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.180Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.180Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.180Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.180Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.180Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.180Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.180Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.180Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.180Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.180Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.180Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.180Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.180Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.180Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.180Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.180Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.180Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.180Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.180Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.180Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.180Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.180Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.180Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.180Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.180Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.180Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.180Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.180Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.180Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.180Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.180Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.180Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.180Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.180Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.180Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.180Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.180Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.180Z] ________________________ test_error_report_styles[line] ________________________
[2024-11-29T22:12:29.180Z]
[2024-11-29T22:12:29.180Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_error_report_styles4')>
[2024-11-29T22:12:29.180Z] tb = 'line'
[2024-11-29T22:12:29.180Z]
[2024-11-29T22:12:29.180Z] @pytest.mark.parametrize("tb", ["auto", "long", "short", "no", "line", "native"])
[2024-11-29T22:12:29.180Z] def test_error_report_styles(pytester: pytest.Pytester, tb: str) -> None:
[2024-11-29T22:12:29.180Z] pytester.makepyfile(
[2024-11-29T22:12:29.180Z] """
[2024-11-29T22:12:29.180Z] import pytest
[2024-11-29T22:12:29.180Z] def test_error_report_styles():
[2024-11-29T22:12:29.180Z] raise RuntimeError('some failure happened')
[2024-11-29T22:12:29.180Z] """
[2024-11-29T22:12:29.180Z] )
[2024-11-29T22:12:29.180Z] result = pytester.runpytest("-n1", "--tb=%s" % tb)
[2024-11-29T22:12:29.180Z] if tb != "no":
[2024-11-29T22:12:29.180Z] > result.stdout.fnmatch_lines("*some failure happened*")
[2024-11-29T22:12:29.180Z] E Failed: nomatch: '*some failure happened*'
[2024-11-29T22:12:29.180Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.180Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.180Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_error_report_styles4'
[2024-11-29T22:12:29.180Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.180Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.180Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.180Z] E remains unmatched: '*some failure happened*'
[2024-11-29T22:12:29.180Z]
[2024-11-29T22:12:29.180Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1113: Failed
[2024-11-29T22:12:29.180Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.180Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.180Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.180Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_error_report_styles4
[2024-11-29T22:12:29.180Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.181Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.181Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.181Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.181Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.181Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.181Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.181Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.181Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.181Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.181Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.181Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.181Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.181Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.181Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.181Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.181Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.181Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.181Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.181Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.181Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.181Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.181Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.181Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.181Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.181Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.181Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.181Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.181Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.181Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.181Z] _______________________ test_error_report_styles[native] _______________________
[2024-11-29T22:12:29.181Z]
[2024-11-29T22:12:29.181Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_error_report_styles5')>
[2024-11-29T22:12:29.181Z] tb = 'native'
[2024-11-29T22:12:29.181Z]
[2024-11-29T22:12:29.181Z] @pytest.mark.parametrize("tb", ["auto", "long", "short", "no", "line", "native"])
[2024-11-29T22:12:29.181Z] def test_error_report_styles(pytester: pytest.Pytester, tb: str) -> None:
[2024-11-29T22:12:29.181Z] pytester.makepyfile(
[2024-11-29T22:12:29.181Z] """
[2024-11-29T22:12:29.181Z] import pytest
[2024-11-29T22:12:29.181Z] def test_error_report_styles():
[2024-11-29T22:12:29.181Z] raise RuntimeError('some failure happened')
[2024-11-29T22:12:29.181Z] """
[2024-11-29T22:12:29.181Z] )
[2024-11-29T22:12:29.181Z] result = pytester.runpytest("-n1", "--tb=%s" % tb)
[2024-11-29T22:12:29.181Z] if tb != "no":
[2024-11-29T22:12:29.181Z] > result.stdout.fnmatch_lines("*some failure happened*")
[2024-11-29T22:12:29.181Z] E Failed: nomatch: '*some failure happened*'
[2024-11-29T22:12:29.181Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.181Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.181Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_error_report_styles5'
[2024-11-29T22:12:29.181Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.181Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.181Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.181Z] E remains unmatched: '*some failure happened*'
[2024-11-29T22:12:29.181Z]
[2024-11-29T22:12:29.181Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1113: Failed
[2024-11-29T22:12:29.181Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.181Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.181Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.181Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_error_report_styles5
[2024-11-29T22:12:29.181Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.181Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.181Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.181Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.181Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.181Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.181Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.181Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.181Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.181Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.181Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.181Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.181Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.181Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.181Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.181Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.181Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.181Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.181Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.181Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.181Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.181Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.181Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.181Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.182Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.182Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.182Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.182Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.182Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.182Z] ____________________ test_color_yes_collection_on_non_atty _____________________
[2024-11-29T22:12:29.182Z]
[2024-11-29T22:12:29.182Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_color_yes_collection_on_non_atty0')>
[2024-11-29T22:12:29.182Z]
[2024-11-29T22:12:29.182Z] def test_color_yes_collection_on_non_atty(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.182Z] """Skip collect progress report when working on non-terminals.
[2024-11-29T22:12:29.182Z]
[2024-11-29T22:12:29.182Z] Similar to pytest-dev/pytest#1397
[2024-11-29T22:12:29.182Z] """
[2024-11-29T22:12:29.182Z] pytester.makepyfile(
[2024-11-29T22:12:29.182Z] """
[2024-11-29T22:12:29.182Z] import pytest
[2024-11-29T22:12:29.182Z] @pytest.mark.parametrize('i', range(10))
[2024-11-29T22:12:29.182Z] def test_this(i):
[2024-11-29T22:12:29.182Z] assert 1
[2024-11-29T22:12:29.182Z] """
[2024-11-29T22:12:29.182Z] )
[2024-11-29T22:12:29.182Z] args = ["--color=yes", "-n2"]
[2024-11-29T22:12:29.182Z] result = pytester.runpytest(*args)
[2024-11-29T22:12:29.182Z] assert "test session starts" in result.stdout.str()
[2024-11-29T22:12:29.182Z] assert "\x1b[1m" in result.stdout.str()
[2024-11-29T22:12:29.182Z] > assert "created: 2/2 workers" in result.stdout.str()
[2024-11-29T22:12:29.182Z] E assert 'created: 2/2 workers' in '\x1b[1m============================= test session starts ==============================\x1b[0m\nplatform linux -- Pyt... raise ValueError(f"unknown execmodel {backend!r}")\nINTERNALERROR> ValueError: unknown execmodel \'main_thread_only\''
[2024-11-29T22:12:29.182Z] E + where '\x1b[1m============================= test session starts ==============================\x1b[0m\nplatform linux -- Pyt... raise ValueError(f"unknown execmodel {backend!r}")\nINTERNALERROR> ValueError: unknown execmodel \'main_thread_only\'' = str()
[2024-11-29T22:12:29.182Z] E + where str = <_pytest.pytester.LineMatcher object at 0x7a3191c57da0>.str
[2024-11-29T22:12:29.182Z] E + where <_pytest.pytester.LineMatcher object at 0x7a3191c57da0> = <RunResult ret=3 len(stdout.lines)=49 len(stderr.lines)=0 duration=0.04s>.stdout
[2024-11-29T22:12:29.182Z]
[2024-11-29T22:12:29.182Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1134: AssertionError
[2024-11-29T22:12:29.182Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.182Z] [1m============================= test session starts ==============================[0m
[2024-11-29T22:12:29.182Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.182Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_color_yes_collection_on_non_atty0
[2024-11-29T22:12:29.182Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.182Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.182Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.182Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.182Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.182Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.182Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.182Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.182Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.182Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.182Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.182Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.182Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.182Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.182Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.182Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.182Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.182Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.182Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.182Z] _________________________ test_without_terminal_plugin _________________________
[2024-11-29T22:12:29.182Z]
[2024-11-29T22:12:29.182Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_without_terminal_plugin0')>
[2024-11-29T22:12:29.182Z]
[2024-11-29T22:12:29.182Z] def test_without_terminal_plugin(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.182Z] """No output when terminal plugin is disabled."""
[2024-11-29T22:12:29.182Z] pytester.makepyfile(
[2024-11-29T22:12:29.182Z] """
[2024-11-29T22:12:29.182Z] def test_1():
[2024-11-29T22:12:29.182Z] pass
[2024-11-29T22:12:29.182Z] """
[2024-11-29T22:12:29.182Z] )
[2024-11-29T22:12:29.182Z] result = pytester.runpytest("-p", "no:terminal", "-n2")
[2024-11-29T22:12:29.182Z] assert result.stdout.str() == ""
[2024-11-29T22:12:29.182Z] > assert result.stderr.str() == ""
[2024-11-29T22:12:29.182Z] E assert "INTERNALERRO..._thread_only'" == ''
[2024-11-29T22:12:29.182Z] E
[2024-11-29T22:12:29.182Z] E + INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.182Z] E + INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.182Z] E + INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.182Z] E + INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.182Z] E + INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.182Z] E + INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
[2024-11-29T22:12:29.182Z] E
[2024-11-29T22:12:29.182Z] E ...Full output truncated (39 lines hidden), use '-vv' to show
[2024-11-29T22:12:29.182Z]
[2024-11-29T22:12:29.182Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1149: AssertionError
[2024-11-29T22:12:29.182Z] ----------------------------- Captured stderr call -----------------------------
[2024-11-29T22:12:29.182Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.182Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.182Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.182Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.182Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.182Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.182Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.182Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.182Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.182Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.182Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.182Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.182Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.182Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.182Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.182Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.182Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.182Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.182Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.182Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.182Z] _______________________ test_internal_error_with_maxfail _______________________
[2024-11-29T22:12:29.182Z]
[2024-11-29T22:12:29.182Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_internal_error_with_maxfail0')>
[2024-11-29T22:12:29.182Z]
[2024-11-29T22:12:29.183Z] def test_internal_error_with_maxfail(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.183Z] """Internal error when using --maxfail option (#62, #65)."""
[2024-11-29T22:12:29.183Z] pytester.makepyfile(
[2024-11-29T22:12:29.183Z] """
[2024-11-29T22:12:29.183Z] import pytest
[2024-11-29T22:12:29.183Z]
[2024-11-29T22:12:29.183Z] @pytest.fixture(params=['1', '2'])
[2024-11-29T22:12:29.183Z] def crasher():
[2024-11-29T22:12:29.183Z] raise RuntimeError
[2024-11-29T22:12:29.183Z]
[2024-11-29T22:12:29.183Z] def test_aaa0(crasher):
[2024-11-29T22:12:29.183Z] pass
[2024-11-29T22:12:29.183Z] def test_aaa1(crasher):
[2024-11-29T22:12:29.183Z] pass
[2024-11-29T22:12:29.183Z] """
[2024-11-29T22:12:29.183Z] )
[2024-11-29T22:12:29.183Z] result = pytester.runpytest_subprocess("--maxfail=1", "-n1")
[2024-11-29T22:12:29.183Z] > result.stdout.re_match_lines([".* [12] errors? in .*"])
[2024-11-29T22:12:29.183Z] E Failed: nomatch: '.* [12] errors? in .*'
[2024-11-29T22:12:29.183Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.183Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.183Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_internal_error_with_maxfail0'
[2024-11-29T22:12:29.183Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.183Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.183Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.183Z] E remains unmatched: '.* [12] errors? in .*'
[2024-11-29T22:12:29.183Z]
[2024-11-29T22:12:29.183Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1170: Failed
[2024-11-29T22:12:29.183Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.183Z] running: /usr/bin/python -mpytest --basetemp=/tmp/pytest-of-builduser/pytest-0/test_internal_error_with_maxfail0/runpytest-0 --maxfail=1 -n1
[2024-11-29T22:12:29.183Z] in: /tmp/pytest-of-builduser/pytest-0/test_internal_error_with_maxfail0
[2024-11-29T22:12:29.183Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.183Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.183Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_internal_error_with_maxfail0
[2024-11-29T22:12:29.183Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.183Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.183Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.183Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.183Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.183Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.183Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.183Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.183Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.183Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.183Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.183Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.183Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.183Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.183Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.183Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.183Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.183Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.183Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.183Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.183Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.183Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.183Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.183Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.183Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.183Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.183Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.183Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.183Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.183Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.183Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.183Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.183Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.183Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.183Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.183Z] ____________________ test_maxfail_causes_early_termination _____________________
[2024-11-29T22:12:29.183Z]
[2024-11-29T22:12:29.183Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_maxfail_causes_early_termination0')>
[2024-11-29T22:12:29.183Z]
[2024-11-29T22:12:29.183Z] def test_maxfail_causes_early_termination(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.183Z] """Ensure subsequent tests on a worker aren't run when using --maxfail (#1024)."""
[2024-11-29T22:12:29.183Z] pytester.makepyfile(
[2024-11-29T22:12:29.183Z] """
[2024-11-29T22:12:29.183Z] def test1():
[2024-11-29T22:12:29.183Z] assert False
[2024-11-29T22:12:29.183Z]
[2024-11-29T22:12:29.183Z] def test2():
[2024-11-29T22:12:29.183Z] pass
[2024-11-29T22:12:29.183Z] """
[2024-11-29T22:12:29.183Z] )
[2024-11-29T22:12:29.183Z] result = pytester.runpytest_subprocess("--maxfail=1", "-n 1")
[2024-11-29T22:12:29.183Z] > result.assert_outcomes(failed=1)
[2024-11-29T22:12:29.183Z]
[2024-11-29T22:12:29.183Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1186:
[2024-11-29T22:12:29.183Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.183Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:564: in parseoutcomes
[2024-11-29T22:12:29.183Z] return self.parse_summary_nouns(self.outlines)
[2024-11-29T22:12:29.183Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.183Z]
[2024-11-29T22:12:29.183Z] cls = <class '_pytest.pytester.RunResult'>
[2024-11-29T22:12:29.183Z] lines = ['============================= test session starts ==============================', 'platform linux -- Python 3.12.7,...l last):', 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session', ...]
[2024-11-29T22:12:29.183Z]
[2024-11-29T22:12:29.183Z] @classmethod
[2024-11-29T22:12:29.183Z] def parse_summary_nouns(cls, lines) -> dict[str, int]:
[2024-11-29T22:12:29.183Z] """Extract the nouns from a pytest terminal summary line.
[2024-11-29T22:12:29.183Z]
[2024-11-29T22:12:29.183Z] It always returns the plural noun for consistency::
[2024-11-29T22:12:29.183Z]
[2024-11-29T22:12:29.183Z] ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ====
[2024-11-29T22:12:29.183Z]
[2024-11-29T22:12:29.183Z] Will return ``{"failed": 1, "passed": 1, "warnings": 1, "errors": 1}``.
[2024-11-29T22:12:29.183Z] """
[2024-11-29T22:12:29.183Z] for line in reversed(lines):
[2024-11-29T22:12:29.183Z] if rex_session_duration.search(line):
[2024-11-29T22:12:29.183Z] outcomes = rex_outcome.findall(line)
[2024-11-29T22:12:29.183Z] ret = {noun: int(count) for (count, noun) in outcomes}
[2024-11-29T22:12:29.183Z] break
[2024-11-29T22:12:29.183Z] else:
[2024-11-29T22:12:29.183Z] > raise ValueError("Pytest terminal summary report not found")
[2024-11-29T22:12:29.183Z] E ValueError: Pytest terminal summary report not found
[2024-11-29T22:12:29.183Z]
[2024-11-29T22:12:29.183Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:582: ValueError
[2024-11-29T22:12:29.183Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.183Z] running: /usr/bin/python -mpytest --basetemp=/tmp/pytest-of-builduser/pytest-0/test_maxfail_causes_early_termination0/runpytest-0 --maxfail=1 -n 1
[2024-11-29T22:12:29.183Z] in: /tmp/pytest-of-builduser/pytest-0/test_maxfail_causes_early_termination0
[2024-11-29T22:12:29.183Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.183Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.183Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_maxfail_causes_early_termination0
[2024-11-29T22:12:29.183Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.183Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.183Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.183Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.183Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.183Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.183Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.183Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.183Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.183Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.183Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.183Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.183Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.183Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.183Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.183Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.183Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.184Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.184Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.184Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.184Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.184Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.184Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.184Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.184Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.184Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.184Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.184Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.184Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.184Z] _________________ test_internal_errors_propagate_to_controller _________________
[2024-11-29T22:12:29.184Z]
[2024-11-29T22:12:29.184Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_internal_errors_propagate_to_controller0')>
[2024-11-29T22:12:29.184Z]
[2024-11-29T22:12:29.184Z] def test_internal_errors_propagate_to_controller(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.184Z] pytester.makeconftest(
[2024-11-29T22:12:29.184Z] """
[2024-11-29T22:12:29.184Z] def pytest_collection_modifyitems():
[2024-11-29T22:12:29.184Z] raise RuntimeError("Some runtime error")
[2024-11-29T22:12:29.184Z] """
[2024-11-29T22:12:29.184Z] )
[2024-11-29T22:12:29.184Z] pytester.makepyfile("def test(): pass")
[2024-11-29T22:12:29.184Z] result = pytester.runpytest("-n1")
[2024-11-29T22:12:29.184Z] > result.stdout.fnmatch_lines(["*RuntimeError: Some runtime error*"])
[2024-11-29T22:12:29.184Z] E Failed: nomatch: '*RuntimeError: Some runtime error*'
[2024-11-29T22:12:29.184Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.184Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.184Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_internal_errors_propagate_to_controller0'
[2024-11-29T22:12:29.184Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.184Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.184Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.184Z] E remains unmatched: '*RuntimeError: Some runtime error*'
[2024-11-29T22:12:29.184Z]
[2024-11-29T22:12:29.184Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1198: Failed
[2024-11-29T22:12:29.184Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.184Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.184Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.184Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_internal_errors_propagate_to_controller0
[2024-11-29T22:12:29.184Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.184Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.184Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.184Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.184Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.184Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.184Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.184Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.184Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.184Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.184Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.184Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.184Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.184Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.184Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.184Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.184Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.184Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.184Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.184Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.184Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.184Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.184Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.184Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.184Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.184Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.184Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.184Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.184Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.184Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.184Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.184Z] _________________________ TestLoadScope.test_by_module _________________________
[2024-11-29T22:12:29.184Z]
[2024-11-29T22:12:29.184Z] self = <acceptance_test.TestLoadScope object at 0x7a31925c0d70>
[2024-11-29T22:12:29.184Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_by_module0')>
[2024-11-29T22:12:29.184Z]
[2024-11-29T22:12:29.184Z] def test_by_module(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.184Z] test_file = """
[2024-11-29T22:12:29.184Z] import pytest
[2024-11-29T22:12:29.184Z] @pytest.mark.parametrize('i', range(10))
[2024-11-29T22:12:29.185Z] def test(i):
[2024-11-29T22:12:29.185Z] pass
[2024-11-29T22:12:29.185Z] """
[2024-11-29T22:12:29.185Z] pytester.makepyfile(test_a=test_file, test_b=test_file)
[2024-11-29T22:12:29.185Z] result = pytester.runpytest("-n2", "--dist=loadscope", "-v")
[2024-11-29T22:12:29.185Z] > assert get_workers_and_test_count_by_prefix(
[2024-11-29T22:12:29.185Z] "test_a.py::test", result.outlines
[2024-11-29T22:12:29.185Z] ) in ({"gw0": 10}, {"gw1": 10})
[2024-11-29T22:12:29.185Z] E AssertionError: assert {} in ({'gw0': 10}, {'gw1': 10})
[2024-11-29T22:12:29.185Z] E + where {} = get_workers_and_test_count_by_prefix('test_a.py::test', ['============================= test session starts ==============================', 'platform linux -- Python 3.12.7,...-builduser/pytest-0/test_by_module0', 'plugins: xdist-3.6.1', 'INTERNALERROR> Traceback (most recent call last):', ...])
[2024-11-29T22:12:29.185Z] E + where ['============================= test session starts ==============================', 'platform linux -- Python 3.12.7,...-builduser/pytest-0/test_by_module0', 'plugins: xdist-3.6.1', 'INTERNALERROR> Traceback (most recent call last):', ...] = <RunResult ret=3 len(stdout.lines)=50 len(stderr.lines)=0 duration=0.04s>.outlines
[2024-11-29T22:12:29.185Z]
[2024-11-29T22:12:29.185Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1211: AssertionError
[2024-11-29T22:12:29.185Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.185Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.185Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.185Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.185Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_by_module0
[2024-11-29T22:12:29.185Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.185Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.185Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.185Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.185Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.185Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.185Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.185Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.185Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.185Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.185Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.185Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.185Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.185Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.185Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.185Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.185Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.185Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.185Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.185Z] _________________________ TestLoadScope.test_by_class __________________________
[2024-11-29T22:12:29.185Z]
[2024-11-29T22:12:29.185Z] self = <acceptance_test.TestLoadScope object at 0x7a31925c0fb0>
[2024-11-29T22:12:29.185Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_by_class0')>
[2024-11-29T22:12:29.185Z]
[2024-11-29T22:12:29.185Z] def test_by_class(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.185Z] pytester.makepyfile(
[2024-11-29T22:12:29.185Z] test_a="""
[2024-11-29T22:12:29.185Z] import pytest
[2024-11-29T22:12:29.185Z] class TestA:
[2024-11-29T22:12:29.185Z] @pytest.mark.parametrize('i', range(10))
[2024-11-29T22:12:29.185Z] def test(self, i):
[2024-11-29T22:12:29.185Z] pass
[2024-11-29T22:12:29.185Z]
[2024-11-29T22:12:29.185Z] class TestB:
[2024-11-29T22:12:29.185Z] @pytest.mark.parametrize('i', range(10))
[2024-11-29T22:12:29.185Z] def test(self, i):
[2024-11-29T22:12:29.185Z] pass
[2024-11-29T22:12:29.185Z] """
[2024-11-29T22:12:29.185Z] )
[2024-11-29T22:12:29.185Z] result = pytester.runpytest("-n2", "--dist=loadscope", "-v")
[2024-11-29T22:12:29.185Z] > assert get_workers_and_test_count_by_prefix(
[2024-11-29T22:12:29.185Z] "test_a.py::TestA", result.outlines
[2024-11-29T22:12:29.185Z] ) in ({"gw0": 10}, {"gw1": 10})
[2024-11-29T22:12:29.185Z] E AssertionError: assert {} in ({'gw0': 10}, {'gw1': 10})
[2024-11-29T22:12:29.185Z] E + where {} = get_workers_and_test_count_by_prefix('test_a.py::TestA', ['============================= test session starts ==============================', 'platform linux -- Python 3.12.7,...f-builduser/pytest-0/test_by_class0', 'plugins: xdist-3.6.1', 'INTERNALERROR> Traceback (most recent call last):', ...])
[2024-11-29T22:12:29.185Z] E + where ['============================= test session starts ==============================', 'platform linux -- Python 3.12.7,...f-builduser/pytest-0/test_by_class0', 'plugins: xdist-3.6.1', 'INTERNALERROR> Traceback (most recent call last):', ...] = <RunResult ret=3 len(stdout.lines)=50 len(stderr.lines)=0 duration=0.07s>.outlines
[2024-11-29T22:12:29.185Z]
[2024-11-29T22:12:29.185Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1234: AssertionError
[2024-11-29T22:12:29.185Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.185Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.185Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.185Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.185Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_by_class0
[2024-11-29T22:12:29.185Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.185Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.185Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.185Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.185Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.185Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.185Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.185Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.185Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.185Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.185Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.185Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.185Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.185Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.185Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.185Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.185Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.185Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.185Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.185Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.185Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.185Z] _________________ TestLoadScope.test_workqueue_ordered_by_size _________________
[2024-11-29T22:12:29.185Z]
[2024-11-29T22:12:29.185Z] self = <acceptance_test.TestLoadScope object at 0x7a31925c11f0>
[2024-11-29T22:12:29.185Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_workqueue_ordered_by_size0')>
[2024-11-29T22:12:29.185Z]
[2024-11-29T22:12:29.185Z] def test_workqueue_ordered_by_size(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.185Z] test_file = """
[2024-11-29T22:12:29.185Z] import pytest
[2024-11-29T22:12:29.185Z] @pytest.mark.parametrize('i', range({}))
[2024-11-29T22:12:29.185Z] def test(i):
[2024-11-29T22:12:29.185Z] pass
[2024-11-29T22:12:29.185Z] """
[2024-11-29T22:12:29.185Z] pytester.makepyfile(test_a=test_file.format(10), test_b=test_file.format(20))
[2024-11-29T22:12:29.185Z] result = pytester.runpytest("-n2", "--dist=loadscope", "-v")
[2024-11-29T22:12:29.185Z] > assert get_workers_and_test_count_by_prefix(
[2024-11-29T22:12:29.185Z] "test_a.py::test", result.outlines
[2024-11-29T22:12:29.185Z] ) == {"gw1": 10}
[2024-11-29T22:12:29.185Z] E AssertionError: assert {} == {'gw1': 10}
[2024-11-29T22:12:29.185Z] E
[2024-11-29T22:12:29.185Z] E Right contains 1 more item:
[2024-11-29T22:12:29.185Z] E {'gw1': 10}
[2024-11-29T22:12:29.185Z] E Use -v to get more diff
[2024-11-29T22:12:29.185Z]
[2024-11-29T22:12:29.185Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1250: AssertionError
[2024-11-29T22:12:29.186Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.186Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.186Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.186Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.186Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_workqueue_ordered_by_size0
[2024-11-29T22:12:29.186Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.186Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.186Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.186Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.186Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.186Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.186Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.186Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.186Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.186Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.186Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.186Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.186Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.186Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.186Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.186Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.186Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.186Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.186Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.186Z] ____________________ TestLoadScope.test_module_single_start ____________________
[2024-11-29T22:12:29.186Z]
[2024-11-29T22:12:29.186Z] self = <acceptance_test.TestLoadScope object at 0x7a31925c1400>
[2024-11-29T22:12:29.186Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_module_single_start0')>
[2024-11-29T22:12:29.186Z]
[2024-11-29T22:12:29.186Z] def test_module_single_start(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.186Z] """Fix test suite never finishing in case all workers start with a single test (#277)."""
[2024-11-29T22:12:29.186Z] test_file1 = """
[2024-11-29T22:12:29.186Z] import pytest
[2024-11-29T22:12:29.186Z] def test():
[2024-11-29T22:12:29.186Z] pass
[2024-11-29T22:12:29.186Z] """
[2024-11-29T22:12:29.186Z] test_file2 = """
[2024-11-29T22:12:29.186Z] import pytest
[2024-11-29T22:12:29.186Z] def test_1():
[2024-11-29T22:12:29.186Z] pass
[2024-11-29T22:12:29.186Z] def test_2():
[2024-11-29T22:12:29.186Z] pass
[2024-11-29T22:12:29.186Z] """
[2024-11-29T22:12:29.186Z] pytester.makepyfile(test_a=test_file1, test_b=test_file1, test_c=test_file2)
[2024-11-29T22:12:29.186Z] result = pytester.runpytest("-n2", "--dist=loadscope", "-v")
[2024-11-29T22:12:29.186Z] a = get_workers_and_test_count_by_prefix("test_a.py::test", result.outlines)
[2024-11-29T22:12:29.186Z] b = get_workers_and_test_count_by_prefix("test_b.py::test", result.outlines)
[2024-11-29T22:12:29.186Z] c1 = get_workers_and_test_count_by_prefix("test_c.py::test_1", result.outlines)
[2024-11-29T22:12:29.186Z] c2 = get_workers_and_test_count_by_prefix("test_c.py::test_2", result.outlines)
[2024-11-29T22:12:29.186Z] > assert a in ({"gw0": 1}, {"gw1": 1})
[2024-11-29T22:12:29.186Z] E AssertionError: assert {} in ({'gw0': 1}, {'gw1': 1})
[2024-11-29T22:12:29.186Z]
[2024-11-29T22:12:29.186Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1277: AssertionError
[2024-11-29T22:12:29.186Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.186Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.186Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.186Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.186Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_module_single_start0
[2024-11-29T22:12:29.186Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.186Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.186Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.186Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.186Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.186Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.186Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.186Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.186Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.186Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.186Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.186Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.186Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.186Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.186Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.186Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.186Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.186Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.186Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.186Z] _________________________ TestFileScope.test_by_module _________________________
[2024-11-29T22:12:29.186Z]
[2024-11-29T22:12:29.186Z] self = <acceptance_test.TestFileScope object at 0x7a31925c16d0>
[2024-11-29T22:12:29.186Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_by_module1')>
[2024-11-29T22:12:29.186Z]
[2024-11-29T22:12:29.186Z] def test_by_module(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.186Z] test_file = """
[2024-11-29T22:12:29.186Z] import pytest
[2024-11-29T22:12:29.186Z] class TestA:
[2024-11-29T22:12:29.186Z] @pytest.mark.parametrize('i', range(10))
[2024-11-29T22:12:29.186Z] def test(self, i):
[2024-11-29T22:12:29.186Z] pass
[2024-11-29T22:12:29.186Z]
[2024-11-29T22:12:29.186Z] class TestB:
[2024-11-29T22:12:29.186Z] @pytest.mark.parametrize('i', range(10))
[2024-11-29T22:12:29.186Z] def test(self, i):
[2024-11-29T22:12:29.186Z] pass
[2024-11-29T22:12:29.186Z] """
[2024-11-29T22:12:29.186Z] pytester.makepyfile(test_a=test_file, test_b=test_file)
[2024-11-29T22:12:29.186Z] result = pytester.runpytest("-n2", "--dist=loadfile", "-v")
[2024-11-29T22:12:29.186Z] test_a_workers_and_test_count = get_workers_and_test_count_by_prefix(
[2024-11-29T22:12:29.186Z] "test_a.py::TestA", result.outlines
[2024-11-29T22:12:29.186Z] )
[2024-11-29T22:12:29.186Z] test_b_workers_and_test_count = get_workers_and_test_count_by_prefix(
[2024-11-29T22:12:29.186Z] "test_b.py::TestB", result.outlines
[2024-11-29T22:12:29.186Z] )
[2024-11-29T22:12:29.186Z]
[2024-11-29T22:12:29.186Z] > assert test_a_workers_and_test_count in (
[2024-11-29T22:12:29.186Z] {"gw0": 10},
[2024-11-29T22:12:29.186Z] {"gw1": 0},
[2024-11-29T22:12:29.186Z] ) or test_a_workers_and_test_count in ({"gw0": 0}, {"gw1": 10})
[2024-11-29T22:12:29.186Z] E AssertionError: assert ({} in ({'gw0': 10}, {'gw1': 0}) or {} in ({'gw0': 0}, {'gw1': 10}))
[2024-11-29T22:12:29.186Z]
[2024-11-29T22:12:29.186Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1306: AssertionError
[2024-11-29T22:12:29.186Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.186Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.186Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.186Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.186Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_by_module1
[2024-11-29T22:12:29.186Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.186Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.186Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.186Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.186Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.186Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.187Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.187Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.187Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.187Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.187Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.187Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.187Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.187Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.187Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.187Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.187Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.187Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.187Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.187Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.187Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.187Z] _________________________ TestFileScope.test_by_class __________________________
[2024-11-29T22:12:29.187Z]
[2024-11-29T22:12:29.187Z] self = <acceptance_test.TestFileScope object at 0x7a319259ffb0>
[2024-11-29T22:12:29.187Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_by_class1')>
[2024-11-29T22:12:29.187Z]
[2024-11-29T22:12:29.187Z] def test_by_class(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.187Z] pytester.makepyfile(
[2024-11-29T22:12:29.187Z] test_a="""
[2024-11-29T22:12:29.187Z] import pytest
[2024-11-29T22:12:29.187Z] class TestA:
[2024-11-29T22:12:29.187Z] @pytest.mark.parametrize('i', range(10))
[2024-11-29T22:12:29.187Z] def test(self, i):
[2024-11-29T22:12:29.187Z] pass
[2024-11-29T22:12:29.187Z]
[2024-11-29T22:12:29.187Z] class TestB:
[2024-11-29T22:12:29.187Z] @pytest.mark.parametrize('i', range(10))
[2024-11-29T22:12:29.187Z] def test(self, i):
[2024-11-29T22:12:29.187Z] pass
[2024-11-29T22:12:29.187Z] """
[2024-11-29T22:12:29.187Z] )
[2024-11-29T22:12:29.187Z] result = pytester.runpytest("-n2", "--dist=loadfile", "-v")
[2024-11-29T22:12:29.187Z] test_a_workers_and_test_count = get_workers_and_test_count_by_prefix(
[2024-11-29T22:12:29.187Z] "test_a.py::TestA", result.outlines
[2024-11-29T22:12:29.187Z] )
[2024-11-29T22:12:29.187Z] test_b_workers_and_test_count = get_workers_and_test_count_by_prefix(
[2024-11-29T22:12:29.187Z] "test_a.py::TestB", result.outlines
[2024-11-29T22:12:29.187Z] )
[2024-11-29T22:12:29.187Z]
[2024-11-29T22:12:29.187Z] > assert test_a_workers_and_test_count in (
[2024-11-29T22:12:29.187Z] {"gw0": 10},
[2024-11-29T22:12:29.187Z] {"gw1": 0},
[2024-11-29T22:12:29.187Z] ) or test_a_workers_and_test_count in ({"gw0": 0}, {"gw1": 10})
[2024-11-29T22:12:29.187Z] E AssertionError: assert ({} in ({'gw0': 10}, {'gw1': 0}) or {} in ({'gw0': 0}, {'gw1': 10}))
[2024-11-29T22:12:29.187Z]
[2024-11-29T22:12:29.187Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1338: AssertionError
[2024-11-29T22:12:29.187Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.187Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.187Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.187Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.187Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_by_class1
[2024-11-29T22:12:29.187Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.187Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.187Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.187Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.187Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.187Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.187Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.187Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.187Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.187Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.187Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.187Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.187Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.187Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.187Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.187Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.187Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.187Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.187Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.187Z] ____________________ TestFileScope.test_module_single_start ____________________
[2024-11-29T22:12:29.187Z]
[2024-11-29T22:12:29.187Z] self = <acceptance_test.TestFileScope object at 0x7a3192526b10>
[2024-11-29T22:12:29.187Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_module_single_start1')>
[2024-11-29T22:12:29.187Z]
[2024-11-29T22:12:29.187Z] def test_module_single_start(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.187Z] """Fix test suite never finishing in case all workers start with a single test (#277)."""
[2024-11-29T22:12:29.187Z] test_file1 = """
[2024-11-29T22:12:29.187Z] import pytest
[2024-11-29T22:12:29.187Z] def test():
[2024-11-29T22:12:29.187Z] pass
[2024-11-29T22:12:29.187Z] """
[2024-11-29T22:12:29.187Z] test_file2 = """
[2024-11-29T22:12:29.187Z] import pytest
[2024-11-29T22:12:29.187Z] def test_1():
[2024-11-29T22:12:29.187Z] pass
[2024-11-29T22:12:29.187Z] def test_2():
[2024-11-29T22:12:29.187Z] pass
[2024-11-29T22:12:29.187Z] """
[2024-11-29T22:12:29.187Z] pytester.makepyfile(test_a=test_file1, test_b=test_file1, test_c=test_file2)
[2024-11-29T22:12:29.187Z] result = pytester.runpytest("-n2", "--dist=loadfile", "-v")
[2024-11-29T22:12:29.187Z] a = get_workers_and_test_count_by_prefix("test_a.py::test", result.outlines)
[2024-11-29T22:12:29.187Z] b = get_workers_and_test_count_by_prefix("test_b.py::test", result.outlines)
[2024-11-29T22:12:29.187Z] c1 = get_workers_and_test_count_by_prefix("test_c.py::test_1", result.outlines)
[2024-11-29T22:12:29.187Z] c2 = get_workers_and_test_count_by_prefix("test_c.py::test_2", result.outlines)
[2024-11-29T22:12:29.187Z] > assert a in ({"gw0": 1}, {"gw1": 1})
[2024-11-29T22:12:29.187Z] E AssertionError: assert {} in ({'gw0': 1}, {'gw1': 1})
[2024-11-29T22:12:29.187Z]
[2024-11-29T22:12:29.187Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1367: AssertionError
[2024-11-29T22:12:29.187Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.187Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.187Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.187Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.187Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_module_single_start1
[2024-11-29T22:12:29.187Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.187Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.187Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.187Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.187Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.187Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.187Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.187Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.187Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.187Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.188Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.188Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.188Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.188Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.188Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.188Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.188Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.188Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.188Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.188Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.188Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.188Z] ________________________ TestGroupScope.test_by_module _________________________
[2024-11-29T22:12:29.188Z]
[2024-11-29T22:12:29.188Z] self = <acceptance_test.TestGroupScope object at 0x7a31925c1580>
[2024-11-29T22:12:29.188Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_by_module2')>
[2024-11-29T22:12:29.188Z]
[2024-11-29T22:12:29.188Z] def test_by_module(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.188Z] test_file = """
[2024-11-29T22:12:29.188Z] import pytest
[2024-11-29T22:12:29.188Z] class TestA:
[2024-11-29T22:12:29.188Z] @pytest.mark.xdist_group(name="xdist_group")
[2024-11-29T22:12:29.188Z] @pytest.mark.parametrize('i', range(5))
[2024-11-29T22:12:29.188Z] def test(self, i):
[2024-11-29T22:12:29.188Z] pass
[2024-11-29T22:12:29.188Z] """
[2024-11-29T22:12:29.188Z] pytester.makepyfile(test_a=test_file, test_b=test_file)
[2024-11-29T22:12:29.188Z] result = pytester.runpytest("-n2", "--dist=loadgroup", "-v")
[2024-11-29T22:12:29.188Z] test_a_workers_and_test_count = get_workers_and_test_count_by_prefix(
[2024-11-29T22:12:29.188Z] "test_a.py::TestA", result.outlines
[2024-11-29T22:12:29.188Z] )
[2024-11-29T22:12:29.188Z] test_b_workers_and_test_count = get_workers_and_test_count_by_prefix(
[2024-11-29T22:12:29.188Z] "test_b.py::TestA", result.outlines
[2024-11-29T22:12:29.188Z] )
[2024-11-29T22:12:29.188Z]
[2024-11-29T22:12:29.188Z] > assert test_a_workers_and_test_count in (
[2024-11-29T22:12:29.188Z] {"gw0": 5},
[2024-11-29T22:12:29.188Z] {"gw1": 0},
[2024-11-29T22:12:29.188Z] ) or test_a_workers_and_test_count in ({"gw0": 0}, {"gw1": 5})
[2024-11-29T22:12:29.188Z] E AssertionError: assert ({} in ({'gw0': 5}, {'gw1': 0}) or {} in ({'gw0': 0}, {'gw1': 5}))
[2024-11-29T22:12:29.188Z]
[2024-11-29T22:12:29.188Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1392: AssertionError
[2024-11-29T22:12:29.188Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.188Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.188Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.188Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.188Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_by_module2
[2024-11-29T22:12:29.188Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.188Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.188Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.188Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.188Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.188Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.188Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.188Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.188Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.188Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.188Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.188Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.188Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.188Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.188Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.188Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.188Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.188Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.188Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.188Z] _________________________ TestGroupScope.test_by_class _________________________
[2024-11-29T22:12:29.188Z]
[2024-11-29T22:12:29.188Z] self = <acceptance_test.TestGroupScope object at 0x7a31925c0c20>
[2024-11-29T22:12:29.188Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_by_class2')>
[2024-11-29T22:12:29.188Z]
[2024-11-29T22:12:29.188Z] def test_by_class(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.188Z] pytester.makepyfile(
[2024-11-29T22:12:29.188Z] test_a="""
[2024-11-29T22:12:29.188Z] import pytest
[2024-11-29T22:12:29.188Z] class TestA:
[2024-11-29T22:12:29.188Z] @pytest.mark.xdist_group(name="xdist_group")
[2024-11-29T22:12:29.188Z] @pytest.mark.parametrize('i', range(10))
[2024-11-29T22:12:29.188Z] def test(self, i):
[2024-11-29T22:12:29.188Z] pass
[2024-11-29T22:12:29.188Z] class TestB:
[2024-11-29T22:12:29.188Z] @pytest.mark.xdist_group(name="xdist_group")
[2024-11-29T22:12:29.188Z] @pytest.mark.parametrize('i', range(10))
[2024-11-29T22:12:29.188Z] def test(self, i):
[2024-11-29T22:12:29.188Z] pass
[2024-11-29T22:12:29.188Z] """
[2024-11-29T22:12:29.188Z] )
[2024-11-29T22:12:29.188Z] result = pytester.runpytest("-n2", "--dist=loadgroup", "-v")
[2024-11-29T22:12:29.188Z] test_a_workers_and_test_count = get_workers_and_test_count_by_prefix(
[2024-11-29T22:12:29.188Z] "test_a.py::TestA", result.outlines
[2024-11-29T22:12:29.188Z] )
[2024-11-29T22:12:29.188Z] test_b_workers_and_test_count = get_workers_and_test_count_by_prefix(
[2024-11-29T22:12:29.188Z] "test_a.py::TestB", result.outlines
[2024-11-29T22:12:29.188Z] )
[2024-11-29T22:12:29.188Z]
[2024-11-29T22:12:29.188Z] > assert test_a_workers_and_test_count in (
[2024-11-29T22:12:29.188Z] {"gw0": 10},
[2024-11-29T22:12:29.188Z] {"gw1": 0},
[2024-11-29T22:12:29.188Z] ) or test_a_workers_and_test_count in ({"gw0": 0}, {"gw1": 10})
[2024-11-29T22:12:29.188Z] E AssertionError: assert ({} in ({'gw0': 10}, {'gw1': 0}) or {} in ({'gw0': 0}, {'gw1': 10}))
[2024-11-29T22:12:29.188Z]
[2024-11-29T22:12:29.188Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1429: AssertionError
[2024-11-29T22:12:29.188Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.188Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.188Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.188Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.188Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_by_class2
[2024-11-29T22:12:29.188Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.188Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.188Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.188Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.188Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.188Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.188Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.188Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.188Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.189Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.189Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.189Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.189Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.189Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.189Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.189Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.189Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.189Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.189Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.189Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.189Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.189Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.189Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.189Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.189Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.189Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.189Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.189Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.189Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.189Z] ______________________ TestLocking.test_single_file[each] ______________________
[2024-11-29T22:12:29.189Z]
[2024-11-29T22:12:29.189Z] self = <acceptance_test.TestLocking object at 0x7a31925c1d00>
[2024-11-29T22:12:29.189Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_single_file0')>
[2024-11-29T22:12:29.189Z] scope = 'each'
[2024-11-29T22:12:29.189Z]
[2024-11-29T22:12:29.189Z] @pytest.mark.parametrize(
[2024-11-29T22:12:29.189Z] "scope", ["each", "load", "loadscope", "loadfile", "worksteal", "no"]
[2024-11-29T22:12:29.189Z] )
[2024-11-29T22:12:29.189Z] def test_single_file(self, pytester: pytest.Pytester, scope: str) -> None:
[2024-11-29T22:12:29.189Z] pytester.makepyfile(test_a=self.test_file1)
[2024-11-29T22:12:29.189Z] result = pytester.runpytest("-n2", "--dist=%s" % scope, "-v")
[2024-11-29T22:12:29.189Z] > result.assert_outcomes(passed=(12 if scope != "each" else 12 * 2))
[2024-11-29T22:12:29.189Z]
[2024-11-29T22:12:29.189Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1521:
[2024-11-29T22:12:29.189Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.189Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:564: in parseoutcomes
[2024-11-29T22:12:29.189Z] return self.parse_summary_nouns(self.outlines)
[2024-11-29T22:12:29.189Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.189Z]
[2024-11-29T22:12:29.189Z] cls = <class '_pytest.pytester.RunResult'>
[2024-11-29T22:12:29.189Z] lines = ['============================= test session starts ==============================', 'platform linux -- Python 3.12.7,...uilduser/pytest-0/test_single_file0', 'plugins: xdist-3.6.1', 'INTERNALERROR> Traceback (most recent call last):', ...]
[2024-11-29T22:12:29.189Z]
[2024-11-29T22:12:29.189Z] @classmethod
[2024-11-29T22:12:29.189Z] def parse_summary_nouns(cls, lines) -> dict[str, int]:
[2024-11-29T22:12:29.189Z] """Extract the nouns from a pytest terminal summary line.
[2024-11-29T22:12:29.189Z]
[2024-11-29T22:12:29.189Z] It always returns the plural noun for consistency::
[2024-11-29T22:12:29.189Z]
[2024-11-29T22:12:29.189Z] ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ====
[2024-11-29T22:12:29.189Z]
[2024-11-29T22:12:29.189Z] Will return ``{"failed": 1, "passed": 1, "warnings": 1, "errors": 1}``.
[2024-11-29T22:12:29.189Z] """
[2024-11-29T22:12:29.189Z] for line in reversed(lines):
[2024-11-29T22:12:29.189Z] if rex_session_duration.search(line):
[2024-11-29T22:12:29.189Z] outcomes = rex_outcome.findall(line)
[2024-11-29T22:12:29.189Z] ret = {noun: int(count) for (count, noun) in outcomes}
[2024-11-29T22:12:29.189Z] break
[2024-11-29T22:12:29.189Z] else:
[2024-11-29T22:12:29.189Z] > raise ValueError("Pytest terminal summary report not found")
[2024-11-29T22:12:29.189Z] E ValueError: Pytest terminal summary report not found
[2024-11-29T22:12:29.189Z]
[2024-11-29T22:12:29.189Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:582: ValueError
[2024-11-29T22:12:29.189Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.189Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.189Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.189Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.189Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_single_file0
[2024-11-29T22:12:29.189Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.189Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.189Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.189Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.189Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.189Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.189Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.189Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.189Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.189Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.189Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.189Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.189Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.189Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.189Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.189Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.189Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.189Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.189Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.189Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.189Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.189Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.189Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.189Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.189Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.189Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.189Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.189Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.189Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.189Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.189Z] ______________________ TestLocking.test_single_file[load] ______________________
[2024-11-29T22:12:29.189Z]
[2024-11-29T22:12:29.189Z] self = <acceptance_test.TestLocking object at 0x7a31925c1fd0>
[2024-11-29T22:12:29.189Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_single_file1')>
[2024-11-29T22:12:29.189Z] scope = 'load'
[2024-11-29T22:12:29.189Z]
[2024-11-29T22:12:29.189Z] @pytest.mark.parametrize(
[2024-11-29T22:12:29.189Z] "scope", ["each", "load", "loadscope", "loadfile", "worksteal", "no"]
[2024-11-29T22:12:29.189Z] )
[2024-11-29T22:12:29.189Z] def test_single_file(self, pytester: pytest.Pytester, scope: str) -> None:
[2024-11-29T22:12:29.189Z] pytester.makepyfile(test_a=self.test_file1)
[2024-11-29T22:12:29.189Z] result = pytester.runpytest("-n2", "--dist=%s" % scope, "-v")
[2024-11-29T22:12:29.189Z] > result.assert_outcomes(passed=(12 if scope != "each" else 12 * 2))
[2024-11-29T22:12:29.189Z]
[2024-11-29T22:12:29.189Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1521:
[2024-11-29T22:12:29.189Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.189Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:564: in parseoutcomes
[2024-11-29T22:12:29.189Z] return self.parse_summary_nouns(self.outlines)
[2024-11-29T22:12:29.189Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.189Z]
[2024-11-29T22:12:29.189Z] cls = <class '_pytest.pytester.RunResult'>
[2024-11-29T22:12:29.189Z] lines = ['============================= test session starts ==============================', 'platform linux -- Python 3.12.7,...uilduser/pytest-0/test_single_file1', 'plugins: xdist-3.6.1', 'INTERNALERROR> Traceback (most recent call last):', ...]
[2024-11-29T22:12:29.189Z]
[2024-11-29T22:12:29.189Z] @classmethod
[2024-11-29T22:12:29.189Z] def parse_summary_nouns(cls, lines) -> dict[str, int]:
[2024-11-29T22:12:29.189Z] """Extract the nouns from a pytest terminal summary line.
[2024-11-29T22:12:29.189Z]
[2024-11-29T22:12:29.189Z] It always returns the plural noun for consistency::
[2024-11-29T22:12:29.189Z]
[2024-11-29T22:12:29.189Z] ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ====
[2024-11-29T22:12:29.189Z]
[2024-11-29T22:12:29.189Z] Will return ``{"failed": 1, "passed": 1, "warnings": 1, "errors": 1}``.
[2024-11-29T22:12:29.189Z] """
[2024-11-29T22:12:29.189Z] for line in reversed(lines):
[2024-11-29T22:12:29.189Z] if rex_session_duration.search(line):
[2024-11-29T22:12:29.189Z] outcomes = rex_outcome.findall(line)
[2024-11-29T22:12:29.189Z] ret = {noun: int(count) for (count, noun) in outcomes}
[2024-11-29T22:12:29.189Z] break
[2024-11-29T22:12:29.189Z] else:
[2024-11-29T22:12:29.189Z] > raise ValueError("Pytest terminal summary report not found")
[2024-11-29T22:12:29.189Z] E ValueError: Pytest terminal summary report not found
[2024-11-29T22:12:29.189Z]
[2024-11-29T22:12:29.189Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:582: ValueError
[2024-11-29T22:12:29.189Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.189Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.189Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.189Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.189Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_single_file1
[2024-11-29T22:12:29.189Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.189Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.189Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.189Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.189Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.189Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.190Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.190Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.190Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.190Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.190Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.190Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.190Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.190Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.190Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.190Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.190Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.190Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.190Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.190Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.190Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.190Z] ___________________ TestLocking.test_single_file[loadscope] ____________________
[2024-11-29T22:12:29.190Z]
[2024-11-29T22:12:29.190Z] self = <acceptance_test.TestLocking object at 0x7a31925c2090>
[2024-11-29T22:12:29.190Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_single_file2')>
[2024-11-29T22:12:29.190Z] scope = 'loadscope'
[2024-11-29T22:12:29.190Z]
[2024-11-29T22:12:29.190Z] @pytest.mark.parametrize(
[2024-11-29T22:12:29.190Z] "scope", ["each", "load", "loadscope", "loadfile", "worksteal", "no"]
[2024-11-29T22:12:29.190Z] )
[2024-11-29T22:12:29.190Z] def test_single_file(self, pytester: pytest.Pytester, scope: str) -> None:
[2024-11-29T22:12:29.190Z] pytester.makepyfile(test_a=self.test_file1)
[2024-11-29T22:12:29.190Z] result = pytester.runpytest("-n2", "--dist=%s" % scope, "-v")
[2024-11-29T22:12:29.190Z] > result.assert_outcomes(passed=(12 if scope != "each" else 12 * 2))
[2024-11-29T22:12:29.190Z]
[2024-11-29T22:12:29.190Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1521:
[2024-11-29T22:12:29.190Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.190Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:564: in parseoutcomes
[2024-11-29T22:12:29.190Z] return self.parse_summary_nouns(self.outlines)
[2024-11-29T22:12:29.190Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.190Z]
[2024-11-29T22:12:29.190Z] cls = <class '_pytest.pytester.RunResult'>
[2024-11-29T22:12:29.190Z] lines = ['============================= test session starts ==============================', 'platform linux -- Python 3.12.7,...uilduser/pytest-0/test_single_file2', 'plugins: xdist-3.6.1', 'INTERNALERROR> Traceback (most recent call last):', ...]
[2024-11-29T22:12:29.190Z]
[2024-11-29T22:12:29.190Z] @classmethod
[2024-11-29T22:12:29.190Z] def parse_summary_nouns(cls, lines) -> dict[str, int]:
[2024-11-29T22:12:29.190Z] """Extract the nouns from a pytest terminal summary line.
[2024-11-29T22:12:29.190Z]
[2024-11-29T22:12:29.190Z] It always returns the plural noun for consistency::
[2024-11-29T22:12:29.190Z]
[2024-11-29T22:12:29.190Z] ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ====
[2024-11-29T22:12:29.190Z]
[2024-11-29T22:12:29.190Z] Will return ``{"failed": 1, "passed": 1, "warnings": 1, "errors": 1}``.
[2024-11-29T22:12:29.190Z] """
[2024-11-29T22:12:29.190Z] for line in reversed(lines):
[2024-11-29T22:12:29.190Z] if rex_session_duration.search(line):
[2024-11-29T22:12:29.190Z] outcomes = rex_outcome.findall(line)
[2024-11-29T22:12:29.190Z] ret = {noun: int(count) for (count, noun) in outcomes}
[2024-11-29T22:12:29.190Z] break
[2024-11-29T22:12:29.190Z] else:
[2024-11-29T22:12:29.190Z] > raise ValueError("Pytest terminal summary report not found")
[2024-11-29T22:12:29.190Z] E ValueError: Pytest terminal summary report not found
[2024-11-29T22:12:29.190Z]
[2024-11-29T22:12:29.190Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:582: ValueError
[2024-11-29T22:12:29.190Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.190Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.190Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.190Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.190Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_single_file2
[2024-11-29T22:12:29.190Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.190Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.190Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.190Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.190Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.190Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.190Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.190Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.190Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.190Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.190Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.190Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.190Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.190Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.190Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.190Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.190Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.190Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.190Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.190Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.190Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.190Z] ____________________ TestLocking.test_single_file[loadfile] ____________________
[2024-11-29T22:12:29.190Z]
[2024-11-29T22:12:29.190Z] self = <acceptance_test.TestLocking object at 0x7a31925c2150>
[2024-11-29T22:12:29.190Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_single_file3')>
[2024-11-29T22:12:29.190Z] scope = 'loadfile'
[2024-11-29T22:12:29.190Z]
[2024-11-29T22:12:29.190Z] @pytest.mark.parametrize(
[2024-11-29T22:12:29.190Z] "scope", ["each", "load", "loadscope", "loadfile", "worksteal", "no"]
[2024-11-29T22:12:29.190Z] )
[2024-11-29T22:12:29.190Z] def test_single_file(self, pytester: pytest.Pytester, scope: str) -> None:
[2024-11-29T22:12:29.190Z] pytester.makepyfile(test_a=self.test_file1)
[2024-11-29T22:12:29.190Z] result = pytester.runpytest("-n2", "--dist=%s" % scope, "-v")
[2024-11-29T22:12:29.190Z] > result.assert_outcomes(passed=(12 if scope != "each" else 12 * 2))
[2024-11-29T22:12:29.190Z]
[2024-11-29T22:12:29.190Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1521:
[2024-11-29T22:12:29.190Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.190Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:564: in parseoutcomes
[2024-11-29T22:12:29.190Z] return self.parse_summary_nouns(self.outlines)
[2024-11-29T22:12:29.190Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.190Z]
[2024-11-29T22:12:29.190Z] cls = <class '_pytest.pytester.RunResult'>
[2024-11-29T22:12:29.190Z] lines = ['============================= test session starts ==============================', 'platform linux -- Python 3.12.7,...uilduser/pytest-0/test_single_file3', 'plugins: xdist-3.6.1', 'INTERNALERROR> Traceback (most recent call last):', ...]
[2024-11-29T22:12:29.190Z]
[2024-11-29T22:12:29.190Z] @classmethod
[2024-11-29T22:12:29.190Z] def parse_summary_nouns(cls, lines) -> dict[str, int]:
[2024-11-29T22:12:29.190Z] """Extract the nouns from a pytest terminal summary line.
[2024-11-29T22:12:29.190Z]
[2024-11-29T22:12:29.190Z] It always returns the plural noun for consistency::
[2024-11-29T22:12:29.190Z]
[2024-11-29T22:12:29.190Z] ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ====
[2024-11-29T22:12:29.190Z]
[2024-11-29T22:12:29.190Z] Will return ``{"failed": 1, "passed": 1, "warnings": 1, "errors": 1}``.
[2024-11-29T22:12:29.190Z] """
[2024-11-29T22:12:29.190Z] for line in reversed(lines):
[2024-11-29T22:12:29.190Z] if rex_session_duration.search(line):
[2024-11-29T22:12:29.190Z] outcomes = rex_outcome.findall(line)
[2024-11-29T22:12:29.190Z] ret = {noun: int(count) for (count, noun) in outcomes}
[2024-11-29T22:12:29.190Z] break
[2024-11-29T22:12:29.190Z] else:
[2024-11-29T22:12:29.190Z] > raise ValueError("Pytest terminal summary report not found")
[2024-11-29T22:12:29.190Z] E ValueError: Pytest terminal summary report not found
[2024-11-29T22:12:29.190Z]
[2024-11-29T22:12:29.190Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:582: ValueError
[2024-11-29T22:12:29.190Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.190Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.190Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.191Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.191Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_single_file3
[2024-11-29T22:12:29.191Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.191Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.191Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.191Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.191Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.191Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.191Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.191Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.191Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.191Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.191Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.191Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.191Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.191Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.191Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.191Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.191Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.191Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.191Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.191Z] ___________________ TestLocking.test_single_file[worksteal] ____________________
[2024-11-29T22:12:29.191Z]
[2024-11-29T22:12:29.191Z] self = <acceptance_test.TestLocking object at 0x7a31925c2210>
[2024-11-29T22:12:29.191Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_single_file4')>
[2024-11-29T22:12:29.191Z] scope = 'worksteal'
[2024-11-29T22:12:29.191Z]
[2024-11-29T22:12:29.191Z] @pytest.mark.parametrize(
[2024-11-29T22:12:29.191Z] "scope", ["each", "load", "loadscope", "loadfile", "worksteal", "no"]
[2024-11-29T22:12:29.191Z] )
[2024-11-29T22:12:29.191Z] def test_single_file(self, pytester: pytest.Pytester, scope: str) -> None:
[2024-11-29T22:12:29.191Z] pytester.makepyfile(test_a=self.test_file1)
[2024-11-29T22:12:29.191Z] result = pytester.runpytest("-n2", "--dist=%s" % scope, "-v")
[2024-11-29T22:12:29.191Z] > result.assert_outcomes(passed=(12 if scope != "each" else 12 * 2))
[2024-11-29T22:12:29.191Z]
[2024-11-29T22:12:29.191Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1521:
[2024-11-29T22:12:29.191Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.191Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:564: in parseoutcomes
[2024-11-29T22:12:29.191Z] return self.parse_summary_nouns(self.outlines)
[2024-11-29T22:12:29.191Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.191Z]
[2024-11-29T22:12:29.191Z] cls = <class '_pytest.pytester.RunResult'>
[2024-11-29T22:12:29.191Z] lines = ['============================= test session starts ==============================', 'platform linux -- Python 3.12.7,...uilduser/pytest-0/test_single_file4', 'plugins: xdist-3.6.1', 'INTERNALERROR> Traceback (most recent call last):', ...]
[2024-11-29T22:12:29.191Z]
[2024-11-29T22:12:29.191Z] @classmethod
[2024-11-29T22:12:29.191Z] def parse_summary_nouns(cls, lines) -> dict[str, int]:
[2024-11-29T22:12:29.191Z] """Extract the nouns from a pytest terminal summary line.
[2024-11-29T22:12:29.191Z]
[2024-11-29T22:12:29.191Z] It always returns the plural noun for consistency::
[2024-11-29T22:12:29.191Z]
[2024-11-29T22:12:29.191Z] ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ====
[2024-11-29T22:12:29.191Z]
[2024-11-29T22:12:29.191Z] Will return ``{"failed": 1, "passed": 1, "warnings": 1, "errors": 1}``.
[2024-11-29T22:12:29.191Z] """
[2024-11-29T22:12:29.191Z] for line in reversed(lines):
[2024-11-29T22:12:29.191Z] if rex_session_duration.search(line):
[2024-11-29T22:12:29.191Z] outcomes = rex_outcome.findall(line)
[2024-11-29T22:12:29.191Z] ret = {noun: int(count) for (count, noun) in outcomes}
[2024-11-29T22:12:29.191Z] break
[2024-11-29T22:12:29.191Z] else:
[2024-11-29T22:12:29.191Z] > raise ValueError("Pytest terminal summary report not found")
[2024-11-29T22:12:29.191Z] E ValueError: Pytest terminal summary report not found
[2024-11-29T22:12:29.191Z]
[2024-11-29T22:12:29.191Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:582: ValueError
[2024-11-29T22:12:29.191Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.191Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.191Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.191Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.191Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_single_file4
[2024-11-29T22:12:29.191Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.191Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.191Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.191Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.191Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.191Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.191Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.191Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.191Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.191Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.191Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.191Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.191Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.191Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.191Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.191Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.191Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.191Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.191Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.191Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.191Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.191Z] _______________________ TestLocking.test_single_file[no] _______________________
[2024-11-29T22:12:29.191Z]
[2024-11-29T22:12:29.191Z] self = <acceptance_test.TestLocking object at 0x7a31925c2300>
[2024-11-29T22:12:29.191Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_single_file5')>
[2024-11-29T22:12:29.191Z] scope = 'no'
[2024-11-29T22:12:29.191Z]
[2024-11-29T22:12:29.191Z] @pytest.mark.parametrize(
[2024-11-29T22:12:29.191Z] "scope", ["each", "load", "loadscope", "loadfile", "worksteal", "no"]
[2024-11-29T22:12:29.191Z] )
[2024-11-29T22:12:29.191Z] def test_single_file(self, pytester: pytest.Pytester, scope: str) -> None:
[2024-11-29T22:12:29.191Z] pytester.makepyfile(test_a=self.test_file1)
[2024-11-29T22:12:29.191Z] result = pytester.runpytest("-n2", "--dist=%s" % scope, "-v")
[2024-11-29T22:12:29.191Z] > result.assert_outcomes(passed=(12 if scope != "each" else 12 * 2))
[2024-11-29T22:12:29.191Z]
[2024-11-29T22:12:29.191Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1521:
[2024-11-29T22:12:29.191Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.191Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:564: in parseoutcomes
[2024-11-29T22:12:29.191Z] return self.parse_summary_nouns(self.outlines)
[2024-11-29T22:12:29.191Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.191Z]
[2024-11-29T22:12:29.191Z] cls = <class '_pytest.pytester.RunResult'>
[2024-11-29T22:12:29.191Z] lines = ['============================= test session starts ==============================', 'platform linux -- Python 3.12.7,...uilduser/pytest-0/test_single_file5', 'plugins: xdist-3.6.1', 'INTERNALERROR> Traceback (most recent call last):', ...]
[2024-11-29T22:12:29.191Z]
[2024-11-29T22:12:29.191Z] @classmethod
[2024-11-29T22:12:29.191Z] def parse_summary_nouns(cls, lines) -> dict[str, int]:
[2024-11-29T22:12:29.191Z] """Extract the nouns from a pytest terminal summary line.
[2024-11-29T22:12:29.191Z]
[2024-11-29T22:12:29.191Z] It always returns the plural noun for consistency::
[2024-11-29T22:12:29.191Z]
[2024-11-29T22:12:29.191Z] ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ====
[2024-11-29T22:12:29.191Z]
[2024-11-29T22:12:29.191Z] Will return ``{"failed": 1, "passed": 1, "warnings": 1, "errors": 1}``.
[2024-11-29T22:12:29.191Z] """
[2024-11-29T22:12:29.191Z] for line in reversed(lines):
[2024-11-29T22:12:29.191Z] if rex_session_duration.search(line):
[2024-11-29T22:12:29.192Z] outcomes = rex_outcome.findall(line)
[2024-11-29T22:12:29.192Z] ret = {noun: int(count) for (count, noun) in outcomes}
[2024-11-29T22:12:29.192Z] break
[2024-11-29T22:12:29.192Z] else:
[2024-11-29T22:12:29.192Z] > raise ValueError("Pytest terminal summary report not found")
[2024-11-29T22:12:29.192Z] E ValueError: Pytest terminal summary report not found
[2024-11-29T22:12:29.192Z]
[2024-11-29T22:12:29.192Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:582: ValueError
[2024-11-29T22:12:29.192Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.192Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.192Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.192Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.192Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_single_file5
[2024-11-29T22:12:29.192Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.192Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.192Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.192Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.192Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.192Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.192Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.192Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.192Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.192Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.192Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.192Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.192Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.192Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.192Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.192Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.192Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.192Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.192Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.192Z] ______________________ TestLocking.test_multi_file[each] _______________________
[2024-11-29T22:12:29.192Z]
[2024-11-29T22:12:29.192Z] self = <acceptance_test.TestLocking object at 0x7a31925c2600>
[2024-11-29T22:12:29.192Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_multi_file0')>
[2024-11-29T22:12:29.192Z] scope = 'each'
[2024-11-29T22:12:29.192Z]
[2024-11-29T22:12:29.192Z] @pytest.mark.parametrize(
[2024-11-29T22:12:29.192Z] "scope", ["each", "load", "loadscope", "loadfile", "worksteal", "no"]
[2024-11-29T22:12:29.192Z] )
[2024-11-29T22:12:29.192Z] def test_multi_file(self, pytester: pytest.Pytester, scope: str) -> None:
[2024-11-29T22:12:29.192Z] pytester.makepyfile(
[2024-11-29T22:12:29.192Z] test_a=self.test_file1,
[2024-11-29T22:12:29.192Z] test_b=self.test_file1,
[2024-11-29T22:12:29.192Z] test_c=self.test_file1,
[2024-11-29T22:12:29.192Z] test_d=self.test_file1,
[2024-11-29T22:12:29.192Z] )
[2024-11-29T22:12:29.192Z] result = pytester.runpytest("-n2", "--dist=%s" % scope, "-v")
[2024-11-29T22:12:29.192Z] > result.assert_outcomes(passed=(48 if scope != "each" else 48 * 2))
[2024-11-29T22:12:29.192Z]
[2024-11-29T22:12:29.192Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1534:
[2024-11-29T22:12:29.192Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.192Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:564: in parseoutcomes
[2024-11-29T22:12:29.192Z] return self.parse_summary_nouns(self.outlines)
[2024-11-29T22:12:29.192Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.192Z]
[2024-11-29T22:12:29.192Z] cls = <class '_pytest.pytester.RunResult'>
[2024-11-29T22:12:29.192Z] lines = ['============================= test session starts ==============================', 'platform linux -- Python 3.12.7,...builduser/pytest-0/test_multi_file0', 'plugins: xdist-3.6.1', 'INTERNALERROR> Traceback (most recent call last):', ...]
[2024-11-29T22:12:29.192Z]
[2024-11-29T22:12:29.192Z] @classmethod
[2024-11-29T22:12:29.192Z] def parse_summary_nouns(cls, lines) -> dict[str, int]:
[2024-11-29T22:12:29.192Z] """Extract the nouns from a pytest terminal summary line.
[2024-11-29T22:12:29.192Z]
[2024-11-29T22:12:29.192Z] It always returns the plural noun for consistency::
[2024-11-29T22:12:29.192Z]
[2024-11-29T22:12:29.192Z] ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ====
[2024-11-29T22:12:29.192Z]
[2024-11-29T22:12:29.192Z] Will return ``{"failed": 1, "passed": 1, "warnings": 1, "errors": 1}``.
[2024-11-29T22:12:29.192Z] """
[2024-11-29T22:12:29.192Z] for line in reversed(lines):
[2024-11-29T22:12:29.192Z] if rex_session_duration.search(line):
[2024-11-29T22:12:29.192Z] outcomes = rex_outcome.findall(line)
[2024-11-29T22:12:29.192Z] ret = {noun: int(count) for (count, noun) in outcomes}
[2024-11-29T22:12:29.192Z] break
[2024-11-29T22:12:29.192Z] else:
[2024-11-29T22:12:29.192Z] > raise ValueError("Pytest terminal summary report not found")
[2024-11-29T22:12:29.192Z] E ValueError: Pytest terminal summary report not found
[2024-11-29T22:12:29.192Z]
[2024-11-29T22:12:29.192Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:582: ValueError
[2024-11-29T22:12:29.192Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.192Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.192Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.192Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.192Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_multi_file0
[2024-11-29T22:12:29.192Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.192Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.192Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.192Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.192Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.192Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.192Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.192Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.192Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.192Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.192Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.192Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.192Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.192Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.192Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.192Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.192Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.192Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.192Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.192Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.192Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.192Z] ______________________ TestLocking.test_multi_file[load] _______________________
[2024-11-29T22:12:29.192Z]
[2024-11-29T22:12:29.193Z] self = <acceptance_test.TestLocking object at 0x7a31925c2870>
[2024-11-29T22:12:29.193Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_multi_file1')>
[2024-11-29T22:12:29.193Z] scope = 'load'
[2024-11-29T22:12:29.193Z]
[2024-11-29T22:12:29.193Z] @pytest.mark.parametrize(
[2024-11-29T22:12:29.193Z] "scope", ["each", "load", "loadscope", "loadfile", "worksteal", "no"]
[2024-11-29T22:12:29.193Z] )
[2024-11-29T22:12:29.193Z] def test_multi_file(self, pytester: pytest.Pytester, scope: str) -> None:
[2024-11-29T22:12:29.193Z] pytester.makepyfile(
[2024-11-29T22:12:29.193Z] test_a=self.test_file1,
[2024-11-29T22:12:29.193Z] test_b=self.test_file1,
[2024-11-29T22:12:29.193Z] test_c=self.test_file1,
[2024-11-29T22:12:29.193Z] test_d=self.test_file1,
[2024-11-29T22:12:29.193Z] )
[2024-11-29T22:12:29.193Z] result = pytester.runpytest("-n2", "--dist=%s" % scope, "-v")
[2024-11-29T22:12:29.193Z] > result.assert_outcomes(passed=(48 if scope != "each" else 48 * 2))
[2024-11-29T22:12:29.193Z]
[2024-11-29T22:12:29.193Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1534:
[2024-11-29T22:12:29.193Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.193Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:564: in parseoutcomes
[2024-11-29T22:12:29.193Z] return self.parse_summary_nouns(self.outlines)
[2024-11-29T22:12:29.193Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.193Z]
[2024-11-29T22:12:29.193Z] cls = <class '_pytest.pytester.RunResult'>
[2024-11-29T22:12:29.193Z] lines = ['============================= test session starts ==============================', 'platform linux -- Python 3.12.7,...builduser/pytest-0/test_multi_file1', 'plugins: xdist-3.6.1', 'INTERNALERROR> Traceback (most recent call last):', ...]
[2024-11-29T22:12:29.193Z]
[2024-11-29T22:12:29.193Z] @classmethod
[2024-11-29T22:12:29.193Z] def parse_summary_nouns(cls, lines) -> dict[str, int]:
[2024-11-29T22:12:29.193Z] """Extract the nouns from a pytest terminal summary line.
[2024-11-29T22:12:29.193Z]
[2024-11-29T22:12:29.193Z] It always returns the plural noun for consistency::
[2024-11-29T22:12:29.193Z]
[2024-11-29T22:12:29.193Z] ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ====
[2024-11-29T22:12:29.193Z]
[2024-11-29T22:12:29.193Z] Will return ``{"failed": 1, "passed": 1, "warnings": 1, "errors": 1}``.
[2024-11-29T22:12:29.193Z] """
[2024-11-29T22:12:29.193Z] for line in reversed(lines):
[2024-11-29T22:12:29.193Z] if rex_session_duration.search(line):
[2024-11-29T22:12:29.193Z] outcomes = rex_outcome.findall(line)
[2024-11-29T22:12:29.193Z] ret = {noun: int(count) for (count, noun) in outcomes}
[2024-11-29T22:12:29.193Z] break
[2024-11-29T22:12:29.193Z] else:
[2024-11-29T22:12:29.193Z] > raise ValueError("Pytest terminal summary report not found")
[2024-11-29T22:12:29.193Z] E ValueError: Pytest terminal summary report not found
[2024-11-29T22:12:29.193Z]
[2024-11-29T22:12:29.193Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:582: ValueError
[2024-11-29T22:12:29.193Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.193Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.193Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.193Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.193Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_multi_file1
[2024-11-29T22:12:29.193Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.193Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.193Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.193Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.193Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.193Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.193Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.193Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.193Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.193Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.193Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.193Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.193Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.193Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.193Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.193Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.193Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.193Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.193Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.193Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.193Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.193Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.193Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.193Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.193Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.193Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.193Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.193Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.193Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.193Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.193Z] ____________________ TestLocking.test_multi_file[loadscope] ____________________
[2024-11-29T22:12:29.193Z]
[2024-11-29T22:12:29.193Z] self = <acceptance_test.TestLocking object at 0x7a31925c2990>
[2024-11-29T22:12:29.193Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_multi_file2')>
[2024-11-29T22:12:29.193Z] scope = 'loadscope'
[2024-11-29T22:12:29.193Z]
[2024-11-29T22:12:29.193Z] @pytest.mark.parametrize(
[2024-11-29T22:12:29.193Z] "scope", ["each", "load", "loadscope", "loadfile", "worksteal", "no"]
[2024-11-29T22:12:29.193Z] )
[2024-11-29T22:12:29.193Z] def test_multi_file(self, pytester: pytest.Pytester, scope: str) -> None:
[2024-11-29T22:12:29.193Z] pytester.makepyfile(
[2024-11-29T22:12:29.193Z] test_a=self.test_file1,
[2024-11-29T22:12:29.193Z] test_b=self.test_file1,
[2024-11-29T22:12:29.193Z] test_c=self.test_file1,
[2024-11-29T22:12:29.193Z] test_d=self.test_file1,
[2024-11-29T22:12:29.193Z] )
[2024-11-29T22:12:29.193Z] result = pytester.runpytest("-n2", "--dist=%s" % scope, "-v")
[2024-11-29T22:12:29.193Z] > result.assert_outcomes(passed=(48 if scope != "each" else 48 * 2))
[2024-11-29T22:12:29.193Z]
[2024-11-29T22:12:29.193Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1534:
[2024-11-29T22:12:29.193Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.193Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:564: in parseoutcomes
[2024-11-29T22:12:29.193Z] return self.parse_summary_nouns(self.outlines)
[2024-11-29T22:12:29.193Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.193Z]
[2024-11-29T22:12:29.193Z] cls = <class '_pytest.pytester.RunResult'>
[2024-11-29T22:12:29.193Z] lines = ['============================= test session starts ==============================', 'platform linux -- Python 3.12.7,...builduser/pytest-0/test_multi_file2', 'plugins: xdist-3.6.1', 'INTERNALERROR> Traceback (most recent call last):', ...]
[2024-11-29T22:12:29.193Z]
[2024-11-29T22:12:29.193Z] @classmethod
[2024-11-29T22:12:29.193Z] def parse_summary_nouns(cls, lines) -> dict[str, int]:
[2024-11-29T22:12:29.193Z] """Extract the nouns from a pytest terminal summary line.
[2024-11-29T22:12:29.193Z]
[2024-11-29T22:12:29.193Z] It always returns the plural noun for consistency::
[2024-11-29T22:12:29.193Z]
[2024-11-29T22:12:29.193Z] ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ====
[2024-11-29T22:12:29.193Z]
[2024-11-29T22:12:29.193Z] Will return ``{"failed": 1, "passed": 1, "warnings": 1, "errors": 1}``.
[2024-11-29T22:12:29.193Z] """
[2024-11-29T22:12:29.193Z] for line in reversed(lines):
[2024-11-29T22:12:29.193Z] if rex_session_duration.search(line):
[2024-11-29T22:12:29.193Z] outcomes = rex_outcome.findall(line)
[2024-11-29T22:12:29.193Z] ret = {noun: int(count) for (count, noun) in outcomes}
[2024-11-29T22:12:29.193Z] break
[2024-11-29T22:12:29.193Z] else:
[2024-11-29T22:12:29.193Z] > raise ValueError("Pytest terminal summary report not found")
[2024-11-29T22:12:29.193Z] E ValueError: Pytest terminal summary report not found
[2024-11-29T22:12:29.193Z]
[2024-11-29T22:12:29.193Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:582: ValueError
[2024-11-29T22:12:29.193Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.193Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.193Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.193Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.193Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_multi_file2
[2024-11-29T22:12:29.193Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.193Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.193Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.193Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.193Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.193Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.193Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.193Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.193Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.193Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.193Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.193Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.193Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.193Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.193Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.193Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.193Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.193Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.193Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.193Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.193Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.193Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.193Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.193Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.194Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.194Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.194Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.194Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.194Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.194Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.194Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.194Z] ____________________ TestLocking.test_multi_file[loadfile] _____________________
[2024-11-29T22:12:29.194Z]
[2024-11-29T22:12:29.194Z] self = <acceptance_test.TestLocking object at 0x7a31925c2a80>
[2024-11-29T22:12:29.194Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_multi_file3')>
[2024-11-29T22:12:29.194Z] scope = 'loadfile'
[2024-11-29T22:12:29.194Z]
[2024-11-29T22:12:29.194Z] @pytest.mark.parametrize(
[2024-11-29T22:12:29.194Z] "scope", ["each", "load", "loadscope", "loadfile", "worksteal", "no"]
[2024-11-29T22:12:29.194Z] )
[2024-11-29T22:12:29.194Z] def test_multi_file(self, pytester: pytest.Pytester, scope: str) -> None:
[2024-11-29T22:12:29.194Z] pytester.makepyfile(
[2024-11-29T22:12:29.194Z] test_a=self.test_file1,
[2024-11-29T22:12:29.194Z] test_b=self.test_file1,
[2024-11-29T22:12:29.194Z] test_c=self.test_file1,
[2024-11-29T22:12:29.194Z] test_d=self.test_file1,
[2024-11-29T22:12:29.194Z] )
[2024-11-29T22:12:29.194Z] result = pytester.runpytest("-n2", "--dist=%s" % scope, "-v")
[2024-11-29T22:12:29.194Z] > result.assert_outcomes(passed=(48 if scope != "each" else 48 * 2))
[2024-11-29T22:12:29.194Z]
[2024-11-29T22:12:29.194Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1534:
[2024-11-29T22:12:29.194Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.194Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:564: in parseoutcomes
[2024-11-29T22:12:29.194Z] return self.parse_summary_nouns(self.outlines)
[2024-11-29T22:12:29.194Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.194Z]
[2024-11-29T22:12:29.194Z] cls = <class '_pytest.pytester.RunResult'>
[2024-11-29T22:12:29.194Z] lines = ['============================= test session starts ==============================', 'platform linux -- Python 3.12.7,...builduser/pytest-0/test_multi_file3', 'plugins: xdist-3.6.1', 'INTERNALERROR> Traceback (most recent call last):', ...]
[2024-11-29T22:12:29.194Z]
[2024-11-29T22:12:29.194Z] @classmethod
[2024-11-29T22:12:29.194Z] def parse_summary_nouns(cls, lines) -> dict[str, int]:
[2024-11-29T22:12:29.194Z] """Extract the nouns from a pytest terminal summary line.
[2024-11-29T22:12:29.194Z]
[2024-11-29T22:12:29.194Z] It always returns the plural noun for consistency::
[2024-11-29T22:12:29.194Z]
[2024-11-29T22:12:29.194Z] ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ====
[2024-11-29T22:12:29.194Z]
[2024-11-29T22:12:29.194Z] Will return ``{"failed": 1, "passed": 1, "warnings": 1, "errors": 1}``.
[2024-11-29T22:12:29.194Z] """
[2024-11-29T22:12:29.194Z] for line in reversed(lines):
[2024-11-29T22:12:29.194Z] if rex_session_duration.search(line):
[2024-11-29T22:12:29.194Z] outcomes = rex_outcome.findall(line)
[2024-11-29T22:12:29.194Z] ret = {noun: int(count) for (count, noun) in outcomes}
[2024-11-29T22:12:29.194Z] break
[2024-11-29T22:12:29.194Z] else:
[2024-11-29T22:12:29.194Z] > raise ValueError("Pytest terminal summary report not found")
[2024-11-29T22:12:29.194Z] E ValueError: Pytest terminal summary report not found
[2024-11-29T22:12:29.194Z]
[2024-11-29T22:12:29.194Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:582: ValueError
[2024-11-29T22:12:29.194Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.194Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.194Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.194Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.194Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_multi_file3
[2024-11-29T22:12:29.194Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.194Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.194Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.194Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.194Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.194Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.194Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.194Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.194Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.194Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.194Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.194Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.194Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.194Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.194Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.194Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.194Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.194Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.194Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.194Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.194Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.194Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.194Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.194Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.194Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.194Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.194Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.194Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.194Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.194Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.194Z] ____________________ TestLocking.test_multi_file[worksteal] ____________________
[2024-11-29T22:12:29.194Z]
[2024-11-29T22:12:29.194Z] self = <acceptance_test.TestLocking object at 0x7a31925c2b40>
[2024-11-29T22:12:29.194Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_multi_file4')>
[2024-11-29T22:12:29.194Z] scope = 'worksteal'
[2024-11-29T22:12:29.194Z]
[2024-11-29T22:12:29.194Z] @pytest.mark.parametrize(
[2024-11-29T22:12:29.194Z] "scope", ["each", "load", "loadscope", "loadfile", "worksteal", "no"]
[2024-11-29T22:12:29.194Z] )
[2024-11-29T22:12:29.194Z] def test_multi_file(self, pytester: pytest.Pytester, scope: str) -> None:
[2024-11-29T22:12:29.194Z] pytester.makepyfile(
[2024-11-29T22:12:29.194Z] test_a=self.test_file1,
[2024-11-29T22:12:29.194Z] test_b=self.test_file1,
[2024-11-29T22:12:29.194Z] test_c=self.test_file1,
[2024-11-29T22:12:29.194Z] test_d=self.test_file1,
[2024-11-29T22:12:29.194Z] )
[2024-11-29T22:12:29.194Z] result = pytester.runpytest("-n2", "--dist=%s" % scope, "-v")
[2024-11-29T22:12:29.194Z] > result.assert_outcomes(passed=(48 if scope != "each" else 48 * 2))
[2024-11-29T22:12:29.194Z]
[2024-11-29T22:12:29.194Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1534:
[2024-11-29T22:12:29.194Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.194Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:564: in parseoutcomes
[2024-11-29T22:12:29.194Z] return self.parse_summary_nouns(self.outlines)
[2024-11-29T22:12:29.194Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.194Z]
[2024-11-29T22:12:29.194Z] cls = <class '_pytest.pytester.RunResult'>
[2024-11-29T22:12:29.194Z] lines = ['============================= test session starts ==============================', 'platform linux -- Python 3.12.7,...builduser/pytest-0/test_multi_file4', 'plugins: xdist-3.6.1', 'INTERNALERROR> Traceback (most recent call last):', ...]
[2024-11-29T22:12:29.194Z]
[2024-11-29T22:12:29.194Z] @classmethod
[2024-11-29T22:12:29.194Z] def parse_summary_nouns(cls, lines) -> dict[str, int]:
[2024-11-29T22:12:29.194Z] """Extract the nouns from a pytest terminal summary line.
[2024-11-29T22:12:29.194Z]
[2024-11-29T22:12:29.194Z] It always returns the plural noun for consistency::
[2024-11-29T22:12:29.194Z]
[2024-11-29T22:12:29.194Z] ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ====
[2024-11-29T22:12:29.194Z]
[2024-11-29T22:12:29.194Z] Will return ``{"failed": 1, "passed": 1, "warnings": 1, "errors": 1}``.
[2024-11-29T22:12:29.194Z] """
[2024-11-29T22:12:29.194Z] for line in reversed(lines):
[2024-11-29T22:12:29.194Z] if rex_session_duration.search(line):
[2024-11-29T22:12:29.194Z] outcomes = rex_outcome.findall(line)
[2024-11-29T22:12:29.194Z] ret = {noun: int(count) for (count, noun) in outcomes}
[2024-11-29T22:12:29.194Z] break
[2024-11-29T22:12:29.194Z] else:
[2024-11-29T22:12:29.194Z] > raise ValueError("Pytest terminal summary report not found")
[2024-11-29T22:12:29.194Z] E ValueError: Pytest terminal summary report not found
[2024-11-29T22:12:29.194Z]
[2024-11-29T22:12:29.194Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:582: ValueError
[2024-11-29T22:12:29.194Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.194Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.194Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.194Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.194Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_multi_file4
[2024-11-29T22:12:29.194Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.194Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.194Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.194Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.194Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.194Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.194Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.194Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.194Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.194Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.194Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.194Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.194Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.194Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.194Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.195Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.195Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.195Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.195Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.195Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.195Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.195Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.195Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.195Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.195Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.195Z] _______________________ TestLocking.test_multi_file[no] ________________________
[2024-11-29T22:12:29.195Z]
[2024-11-29T22:12:29.195Z] self = <acceptance_test.TestLocking object at 0x7a31925c2c00>
[2024-11-29T22:12:29.195Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_multi_file5')>
[2024-11-29T22:12:29.195Z] scope = 'no'
[2024-11-29T22:12:29.195Z]
[2024-11-29T22:12:29.195Z] @pytest.mark.parametrize(
[2024-11-29T22:12:29.195Z] "scope", ["each", "load", "loadscope", "loadfile", "worksteal", "no"]
[2024-11-29T22:12:29.195Z] )
[2024-11-29T22:12:29.195Z] def test_multi_file(self, pytester: pytest.Pytester, scope: str) -> None:
[2024-11-29T22:12:29.195Z] pytester.makepyfile(
[2024-11-29T22:12:29.195Z] test_a=self.test_file1,
[2024-11-29T22:12:29.195Z] test_b=self.test_file1,
[2024-11-29T22:12:29.195Z] test_c=self.test_file1,
[2024-11-29T22:12:29.195Z] test_d=self.test_file1,
[2024-11-29T22:12:29.195Z] )
[2024-11-29T22:12:29.195Z] result = pytester.runpytest("-n2", "--dist=%s" % scope, "-v")
[2024-11-29T22:12:29.195Z] > result.assert_outcomes(passed=(48 if scope != "each" else 48 * 2))
[2024-11-29T22:12:29.195Z]
[2024-11-29T22:12:29.195Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1534:
[2024-11-29T22:12:29.195Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.195Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:564: in parseoutcomes
[2024-11-29T22:12:29.195Z] return self.parse_summary_nouns(self.outlines)
[2024-11-29T22:12:29.195Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.195Z]
[2024-11-29T22:12:29.195Z] cls = <class '_pytest.pytester.RunResult'>
[2024-11-29T22:12:29.195Z] lines = ['============================= test session starts ==============================', 'platform linux -- Python 3.12.7,...builduser/pytest-0/test_multi_file5', 'plugins: xdist-3.6.1', 'INTERNALERROR> Traceback (most recent call last):', ...]
[2024-11-29T22:12:29.195Z]
[2024-11-29T22:12:29.195Z] @classmethod
[2024-11-29T22:12:29.195Z] def parse_summary_nouns(cls, lines) -> dict[str, int]:
[2024-11-29T22:12:29.195Z] """Extract the nouns from a pytest terminal summary line.
[2024-11-29T22:12:29.195Z]
[2024-11-29T22:12:29.195Z] It always returns the plural noun for consistency::
[2024-11-29T22:12:29.195Z]
[2024-11-29T22:12:29.195Z] ======= 1 failed, 1 passed, 1 warning, 1 error in 0.13s ====
[2024-11-29T22:12:29.195Z]
[2024-11-29T22:12:29.195Z] Will return ``{"failed": 1, "passed": 1, "warnings": 1, "errors": 1}``.
[2024-11-29T22:12:29.195Z] """
[2024-11-29T22:12:29.195Z] for line in reversed(lines):
[2024-11-29T22:12:29.195Z] if rex_session_duration.search(line):
[2024-11-29T22:12:29.195Z] outcomes = rex_outcome.findall(line)
[2024-11-29T22:12:29.195Z] ret = {noun: int(count) for (count, noun) in outcomes}
[2024-11-29T22:12:29.195Z] break
[2024-11-29T22:12:29.195Z] else:
[2024-11-29T22:12:29.195Z] > raise ValueError("Pytest terminal summary report not found")
[2024-11-29T22:12:29.195Z] E ValueError: Pytest terminal summary report not found
[2024-11-29T22:12:29.195Z]
[2024-11-29T22:12:29.195Z] /usr/lib/python3.12/site-packages/_pytest/pytester.py:582: ValueError
[2024-11-29T22:12:29.195Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.195Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.195Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python
[2024-11-29T22:12:29.195Z] cachedir: .pytest_cache
[2024-11-29T22:12:29.195Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_multi_file5
[2024-11-29T22:12:29.195Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.195Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.195Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.195Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.195Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.195Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.195Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.195Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.195Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.195Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.195Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.195Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.195Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.195Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.195Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.195Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.195Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.195Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.195Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.195Z] ____________________________ test_collection_crash _____________________________
[2024-11-29T22:12:29.195Z]
[2024-11-29T22:12:29.195Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_collection_crash0')>
[2024-11-29T22:12:29.195Z]
[2024-11-29T22:12:29.195Z] def test_collection_crash(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.195Z] p1 = pytester.makepyfile(
[2024-11-29T22:12:29.195Z] """
[2024-11-29T22:12:29.195Z] assert 0
[2024-11-29T22:12:29.195Z] """
[2024-11-29T22:12:29.195Z] )
[2024-11-29T22:12:29.195Z] result = pytester.runpytest(p1, "-n1")
[2024-11-29T22:12:29.195Z] > assert result.ret == 1
[2024-11-29T22:12:29.195Z] E assert <ExitCode.INTERNAL_ERROR: 3> == 1
[2024-11-29T22:12:29.195Z] E + where <ExitCode.INTERNAL_ERROR: 3> = <RunResult ret=3 len(stdout.lines)=49 len(stderr.lines)=0 duration=0.04s>.ret
[2024-11-29T22:12:29.195Z]
[2024-11-29T22:12:29.195Z] /build/python-pytest-xdist/src/pytest-xdist/testing/acceptance_test.py:1616: AssertionError
[2024-11-29T22:12:29.195Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.195Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.195Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.195Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_collection_crash0
[2024-11-29T22:12:29.195Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.195Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.195Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.195Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.195Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.195Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.195Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.195Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.195Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.195Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.195Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.195Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.195Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.195Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.195Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.196Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.196Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.196Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.196Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.196Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.196Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.196Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.196Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.196Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.196Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.196Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.196Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.196Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.196Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.196Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.196Z] ______________________ TestRemoteControl.test_nofailures _______________________
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] io = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191c997c0>
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] @staticmethod
[2024-11-29T22:12:29.196Z] def from_io(io):
[2024-11-29T22:12:29.196Z] try:
[2024-11-29T22:12:29.196Z] > header = io.read(9) # type 1, channel 4, payload 4
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:507:
[2024-11-29T22:12:29.196Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] self = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191c997c0>
[2024-11-29T22:12:29.196Z] numbytes = 9
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] def read(self, numbytes):
[2024-11-29T22:12:29.196Z] """Read exactly 'numbytes' bytes from the pipe."""
[2024-11-29T22:12:29.196Z] # a file in non-blocking mode may return less bytes, so we loop
[2024-11-29T22:12:29.196Z] buf = b""
[2024-11-29T22:12:29.196Z] while numbytes > len(buf):
[2024-11-29T22:12:29.196Z] data = self._read(numbytes - len(buf))
[2024-11-29T22:12:29.196Z] if not data:
[2024-11-29T22:12:29.196Z] > raise EOFError("expected %d bytes, got %d" % (numbytes, len(buf)))
[2024-11-29T22:12:29.196Z] E EOFError: expected 9 bytes, got 0
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:476: EOFError
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] During handling of the above exception, another exception occurred:
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] self = <test_looponfail.TestRemoteControl object at 0x7a31921212e0>
[2024-11-29T22:12:29.196Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_nofailures0')>
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] def test_nofailures(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.196Z] item = pytester.getitem("def test_func(): pass\n")
[2024-11-29T22:12:29.196Z] control = RemoteControl(item.config)
[2024-11-29T22:12:29.196Z] > control.setup()
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_looponfail.py:118:
[2024-11-29T22:12:29.196Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.196Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/looponfail.py:97: in setup
[2024-11-29T22:12:29.196Z] remote_outchannel: execnet.Channel = channel.receive()
[2024-11-29T22:12:29.196Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:831: in receive
[2024-11-29T22:12:29.196Z] raise self._getremoteerror() or EOFError()
[2024-11-29T22:12:29.196Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:1049: in _thread_receiver
[2024-11-29T22:12:29.196Z] msg = Message.from_io(io)
[2024-11-29T22:12:29.196Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] io = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191c997c0>
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] @staticmethod
[2024-11-29T22:12:29.196Z] def from_io(io):
[2024-11-29T22:12:29.196Z] try:
[2024-11-29T22:12:29.196Z] header = io.read(9) # type 1, channel 4, payload 4
[2024-11-29T22:12:29.196Z] if not header:
[2024-11-29T22:12:29.196Z] raise EOFError("empty read")
[2024-11-29T22:12:29.196Z] except EOFError:
[2024-11-29T22:12:29.196Z] e = sys.exc_info()[1]
[2024-11-29T22:12:29.196Z] > raise EOFError("couldn't load message header, " + e.args[0])
[2024-11-29T22:12:29.196Z] E EOFError: couldn't load message header, expected 9 bytes, got 0
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:512: EOFError
[2024-11-29T22:12:29.196Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.196Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.196Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.196Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_nofailures0
[2024-11-29T22:12:29.196Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.196Z] collected 0 items
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] ============================ no tests ran in 0.00s =============================
[2024-11-29T22:12:29.196Z] ----------------------------- Captured stderr call -----------------------------
[2024-11-29T22:12:29.196Z] Traceback (most recent call last):
[2024-11-29T22:12:29.196Z] File "<string>", line 1, in <module>
[2024-11-29T22:12:29.196Z] File "<string>", line 7, in <module>
[2024-11-29T22:12:29.196Z] File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.196Z] raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.196Z] ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.196Z] __________________ TestRemoteControl.test_failures_somewhere ___________________
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] io = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191ea43e0>
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] @staticmethod
[2024-11-29T22:12:29.196Z] def from_io(io):
[2024-11-29T22:12:29.196Z] try:
[2024-11-29T22:12:29.196Z] > header = io.read(9) # type 1, channel 4, payload 4
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:507:
[2024-11-29T22:12:29.196Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] self = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191ea43e0>
[2024-11-29T22:12:29.196Z] numbytes = 9
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] def read(self, numbytes):
[2024-11-29T22:12:29.196Z] """Read exactly 'numbytes' bytes from the pipe."""
[2024-11-29T22:12:29.196Z] # a file in non-blocking mode may return less bytes, so we loop
[2024-11-29T22:12:29.196Z] buf = b""
[2024-11-29T22:12:29.196Z] while numbytes > len(buf):
[2024-11-29T22:12:29.196Z] data = self._read(numbytes - len(buf))
[2024-11-29T22:12:29.196Z] if not data:
[2024-11-29T22:12:29.196Z] > raise EOFError("expected %d bytes, got %d" % (numbytes, len(buf)))
[2024-11-29T22:12:29.196Z] E EOFError: expected 9 bytes, got 0
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:476: EOFError
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] During handling of the above exception, another exception occurred:
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] self = <test_looponfail.TestRemoteControl object at 0x7a3192121310>
[2024-11-29T22:12:29.196Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_failures_somewhere0')>
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] def test_failures_somewhere(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.196Z] item = pytester.getitem("def test_func():\n assert 0\n")
[2024-11-29T22:12:29.196Z] control = RemoteControl(item.config)
[2024-11-29T22:12:29.196Z] > control.setup()
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_looponfail.py:125:
[2024-11-29T22:12:29.196Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.196Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/looponfail.py:97: in setup
[2024-11-29T22:12:29.196Z] remote_outchannel: execnet.Channel = channel.receive()
[2024-11-29T22:12:29.196Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:831: in receive
[2024-11-29T22:12:29.196Z] raise self._getremoteerror() or EOFError()
[2024-11-29T22:12:29.196Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:1049: in _thread_receiver
[2024-11-29T22:12:29.196Z] msg = Message.from_io(io)
[2024-11-29T22:12:29.196Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] io = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191ea43e0>
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] @staticmethod
[2024-11-29T22:12:29.196Z] def from_io(io):
[2024-11-29T22:12:29.196Z] try:
[2024-11-29T22:12:29.196Z] header = io.read(9) # type 1, channel 4, payload 4
[2024-11-29T22:12:29.196Z] if not header:
[2024-11-29T22:12:29.196Z] raise EOFError("empty read")
[2024-11-29T22:12:29.196Z] except EOFError:
[2024-11-29T22:12:29.196Z] e = sys.exc_info()[1]
[2024-11-29T22:12:29.196Z] > raise EOFError("couldn't load message header, " + e.args[0])
[2024-11-29T22:12:29.196Z] E EOFError: couldn't load message header, expected 9 bytes, got 0
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:512: EOFError
[2024-11-29T22:12:29.196Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.196Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.196Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.196Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_failures_somewhere0
[2024-11-29T22:12:29.196Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.196Z] collected 0 items
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] ============================ no tests ran in 0.00s =============================
[2024-11-29T22:12:29.196Z] ----------------------------- Captured stderr call -----------------------------
[2024-11-29T22:12:29.196Z] Traceback (most recent call last):
[2024-11-29T22:12:29.196Z] File "<string>", line 1, in <module>
[2024-11-29T22:12:29.196Z] File "<string>", line 7, in <module>
[2024-11-29T22:12:29.196Z] File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.196Z] raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.196Z] ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.196Z] ____________________ TestRemoteControl.test_failure_change _____________________
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] io = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191ea7b30>
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] @staticmethod
[2024-11-29T22:12:29.196Z] def from_io(io):
[2024-11-29T22:12:29.196Z] try:
[2024-11-29T22:12:29.196Z] > header = io.read(9) # type 1, channel 4, payload 4
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:507:
[2024-11-29T22:12:29.196Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] self = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191ea7b30>
[2024-11-29T22:12:29.196Z] numbytes = 9
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] def read(self, numbytes):
[2024-11-29T22:12:29.196Z] """Read exactly 'numbytes' bytes from the pipe."""
[2024-11-29T22:12:29.196Z] # a file in non-blocking mode may return less bytes, so we loop
[2024-11-29T22:12:29.196Z] buf = b""
[2024-11-29T22:12:29.196Z] while numbytes > len(buf):
[2024-11-29T22:12:29.196Z] data = self._read(numbytes - len(buf))
[2024-11-29T22:12:29.196Z] if not data:
[2024-11-29T22:12:29.196Z] > raise EOFError("expected %d bytes, got %d" % (numbytes, len(buf)))
[2024-11-29T22:12:29.196Z] E EOFError: expected 9 bytes, got 0
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:476: EOFError
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] During handling of the above exception, another exception occurred:
[2024-11-29T22:12:29.196Z]
[2024-11-29T22:12:29.196Z] self = <test_looponfail.TestRemoteControl object at 0x7a3192120ad0>
[2024-11-29T22:12:29.197Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_failure_change0')>
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] def test_failure_change(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.197Z] modcol = pytester.getitem(
[2024-11-29T22:12:29.197Z] textwrap.dedent(
[2024-11-29T22:12:29.197Z] """
[2024-11-29T22:12:29.197Z] def test_func():
[2024-11-29T22:12:29.197Z] assert 0
[2024-11-29T22:12:29.197Z] """
[2024-11-29T22:12:29.197Z] )
[2024-11-29T22:12:29.197Z] )
[2024-11-29T22:12:29.197Z] control = RemoteControl(modcol.config)
[2024-11-29T22:12:29.197Z] > control.loop_once()
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_looponfail.py:144:
[2024-11-29T22:12:29.197Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.197Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/looponfail.py:132: in loop_once
[2024-11-29T22:12:29.197Z] self.setup()
[2024-11-29T22:12:29.197Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/looponfail.py:97: in setup
[2024-11-29T22:12:29.197Z] remote_outchannel: execnet.Channel = channel.receive()
[2024-11-29T22:12:29.197Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:831: in receive
[2024-11-29T22:12:29.197Z] raise self._getremoteerror() or EOFError()
[2024-11-29T22:12:29.197Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:1049: in _thread_receiver
[2024-11-29T22:12:29.197Z] msg = Message.from_io(io)
[2024-11-29T22:12:29.197Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] io = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191ea7b30>
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] @staticmethod
[2024-11-29T22:12:29.197Z] def from_io(io):
[2024-11-29T22:12:29.197Z] try:
[2024-11-29T22:12:29.197Z] header = io.read(9) # type 1, channel 4, payload 4
[2024-11-29T22:12:29.197Z] if not header:
[2024-11-29T22:12:29.197Z] raise EOFError("empty read")
[2024-11-29T22:12:29.197Z] except EOFError:
[2024-11-29T22:12:29.197Z] e = sys.exc_info()[1]
[2024-11-29T22:12:29.197Z] > raise EOFError("couldn't load message header, " + e.args[0])
[2024-11-29T22:12:29.197Z] E EOFError: couldn't load message header, expected 9 bytes, got 0
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:512: EOFError
[2024-11-29T22:12:29.197Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.197Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.197Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.197Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_failure_change0
[2024-11-29T22:12:29.197Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.197Z] collected 0 items
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] ============================ no tests ran in 0.00s =============================
[2024-11-29T22:12:29.197Z] ----------------------------- Captured stderr call -----------------------------
[2024-11-29T22:12:29.197Z] Traceback (most recent call last):
[2024-11-29T22:12:29.197Z] File "<string>", line 1, in <module>
[2024-11-29T22:12:29.197Z] File "<string>", line 7, in <module>
[2024-11-29T22:12:29.197Z] File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.197Z] raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.197Z] ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.197Z] ________________ TestRemoteControl.test_failure_subdir_no_init _________________
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] io = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191e1bce0>
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] @staticmethod
[2024-11-29T22:12:29.197Z] def from_io(io):
[2024-11-29T22:12:29.197Z] try:
[2024-11-29T22:12:29.197Z] > header = io.read(9) # type 1, channel 4, payload 4
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:507:
[2024-11-29T22:12:29.197Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] self = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191e1bce0>
[2024-11-29T22:12:29.197Z] numbytes = 9
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] def read(self, numbytes):
[2024-11-29T22:12:29.197Z] """Read exactly 'numbytes' bytes from the pipe."""
[2024-11-29T22:12:29.197Z] # a file in non-blocking mode may return less bytes, so we loop
[2024-11-29T22:12:29.197Z] buf = b""
[2024-11-29T22:12:29.197Z] while numbytes > len(buf):
[2024-11-29T22:12:29.197Z] data = self._read(numbytes - len(buf))
[2024-11-29T22:12:29.197Z] if not data:
[2024-11-29T22:12:29.197Z] > raise EOFError("expected %d bytes, got %d" % (numbytes, len(buf)))
[2024-11-29T22:12:29.197Z] E EOFError: expected 9 bytes, got 0
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:476: EOFError
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] During handling of the above exception, another exception occurred:
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] self = <test_looponfail.TestRemoteControl object at 0x7a31921219a0>
[2024-11-29T22:12:29.197Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_failure_subdir_no_init0')>
[2024-11-29T22:12:29.197Z] monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7a3191d12de0>
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] def test_failure_subdir_no_init(
[2024-11-29T22:12:29.197Z] self, pytester: pytest.Pytester, monkeypatch: pytest.MonkeyPatch
[2024-11-29T22:12:29.197Z] ) -> None:
[2024-11-29T22:12:29.197Z] modcol = pytester.getitem(
[2024-11-29T22:12:29.197Z] textwrap.dedent(
[2024-11-29T22:12:29.197Z] """
[2024-11-29T22:12:29.197Z] def test_func():
[2024-11-29T22:12:29.197Z] assert 0
[2024-11-29T22:12:29.197Z] """
[2024-11-29T22:12:29.197Z] )
[2024-11-29T22:12:29.197Z] )
[2024-11-29T22:12:29.197Z] parent = modcol.path.parent.parent
[2024-11-29T22:12:29.197Z] monkeypatch.chdir(parent)
[2024-11-29T22:12:29.197Z] modcol.config.args = [
[2024-11-29T22:12:29.197Z] str(Path(x).relative_to(parent)) for x in modcol.config.args
[2024-11-29T22:12:29.197Z] ]
[2024-11-29T22:12:29.197Z] control = RemoteControl(modcol.config)
[2024-11-29T22:12:29.197Z] > control.loop_once()
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_looponfail.py:182:
[2024-11-29T22:12:29.197Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.197Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/looponfail.py:132: in loop_once
[2024-11-29T22:12:29.197Z] self.setup()
[2024-11-29T22:12:29.197Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/looponfail.py:97: in setup
[2024-11-29T22:12:29.197Z] remote_outchannel: execnet.Channel = channel.receive()
[2024-11-29T22:12:29.197Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:831: in receive
[2024-11-29T22:12:29.197Z] raise self._getremoteerror() or EOFError()
[2024-11-29T22:12:29.197Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:1049: in _thread_receiver
[2024-11-29T22:12:29.197Z] msg = Message.from_io(io)
[2024-11-29T22:12:29.197Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] io = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191e1bce0>
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] @staticmethod
[2024-11-29T22:12:29.197Z] def from_io(io):
[2024-11-29T22:12:29.197Z] try:
[2024-11-29T22:12:29.197Z] header = io.read(9) # type 1, channel 4, payload 4
[2024-11-29T22:12:29.197Z] if not header:
[2024-11-29T22:12:29.197Z] raise EOFError("empty read")
[2024-11-29T22:12:29.197Z] except EOFError:
[2024-11-29T22:12:29.197Z] e = sys.exc_info()[1]
[2024-11-29T22:12:29.197Z] > raise EOFError("couldn't load message header, " + e.args[0])
[2024-11-29T22:12:29.197Z] E EOFError: couldn't load message header, expected 9 bytes, got 0
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:512: EOFError
[2024-11-29T22:12:29.197Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.197Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.197Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.197Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_failure_subdir_no_init0
[2024-11-29T22:12:29.197Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.197Z] collected 0 items
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] ============================ no tests ran in 0.00s =============================
[2024-11-29T22:12:29.197Z] ----------------------------- Captured stderr call -----------------------------
[2024-11-29T22:12:29.197Z] Traceback (most recent call last):
[2024-11-29T22:12:29.197Z] File "<string>", line 1, in <module>
[2024-11-29T22:12:29.197Z] File "<string>", line 7, in <module>
[2024-11-29T22:12:29.197Z] File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.197Z] raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.197Z] ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.197Z] ______________ TestRemoteControl.test_ignore_sys_path_hook_entry _______________
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] io = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191d424b0>
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] @staticmethod
[2024-11-29T22:12:29.197Z] def from_io(io):
[2024-11-29T22:12:29.197Z] try:
[2024-11-29T22:12:29.197Z] > header = io.read(9) # type 1, channel 4, payload 4
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:507:
[2024-11-29T22:12:29.197Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] self = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191d424b0>
[2024-11-29T22:12:29.197Z] numbytes = 9
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] def read(self, numbytes):
[2024-11-29T22:12:29.197Z] """Read exactly 'numbytes' bytes from the pipe."""
[2024-11-29T22:12:29.197Z] # a file in non-blocking mode may return less bytes, so we loop
[2024-11-29T22:12:29.197Z] buf = b""
[2024-11-29T22:12:29.197Z] while numbytes > len(buf):
[2024-11-29T22:12:29.197Z] data = self._read(numbytes - len(buf))
[2024-11-29T22:12:29.197Z] if not data:
[2024-11-29T22:12:29.197Z] > raise EOFError("expected %d bytes, got %d" % (numbytes, len(buf)))
[2024-11-29T22:12:29.197Z] E EOFError: expected 9 bytes, got 0
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:476: EOFError
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] During handling of the above exception, another exception occurred:
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] self = <test_looponfail.TestRemoteControl object at 0x7a3192121bb0>
[2024-11-29T22:12:29.197Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_ignore_sys_path_hook_entry0')>
[2024-11-29T22:12:29.197Z] monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7a319225cbc0>
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] def test_ignore_sys_path_hook_entry(
[2024-11-29T22:12:29.197Z] self, pytester: pytest.Pytester, monkeypatch: pytest.MonkeyPatch
[2024-11-29T22:12:29.197Z] ) -> None:
[2024-11-29T22:12:29.197Z] # Modifying sys.path as seen by the worker process is a bit tricky,
[2024-11-29T22:12:29.197Z] # because any changes made in the current process do not carry over.
[2024-11-29T22:12:29.197Z] # However, we can leverage the `sitecustomize` behavior to run arbitrary
[2024-11-29T22:12:29.197Z] # code when the subprocess interpreter is starting up. We just need to
[2024-11-29T22:12:29.197Z] # install our module in the search path, which we can accomplish by
[2024-11-29T22:12:29.197Z] # adding a temporary directory to PYTHONPATH.
[2024-11-29T22:12:29.197Z] tmpdir = tempfile.TemporaryDirectory()
[2024-11-29T22:12:29.197Z] with open(pathlib.Path(tmpdir.name) / "sitecustomize.py", "w") as custom:
[2024-11-29T22:12:29.197Z] print(
[2024-11-29T22:12:29.197Z] textwrap.dedent(
[2024-11-29T22:12:29.197Z] """
[2024-11-29T22:12:29.197Z] import sys
[2024-11-29T22:12:29.197Z] sys.path.append('dummy.__path_hook__')
[2024-11-29T22:12:29.197Z] """
[2024-11-29T22:12:29.197Z] ),
[2024-11-29T22:12:29.197Z] file=custom,
[2024-11-29T22:12:29.197Z] )
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] monkeypatch.setenv("PYTHONPATH", tmpdir.name, prepend=":")
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] item = pytester.getitem(
[2024-11-29T22:12:29.197Z] textwrap.dedent(
[2024-11-29T22:12:29.197Z] """
[2024-11-29T22:12:29.197Z] def test_func():
[2024-11-29T22:12:29.197Z] import sys
[2024-11-29T22:12:29.197Z] assert "dummy.__path_hook__" in sys.path
[2024-11-29T22:12:29.197Z] """
[2024-11-29T22:12:29.197Z] )
[2024-11-29T22:12:29.197Z] )
[2024-11-29T22:12:29.197Z] control = RemoteControl(item.config)
[2024-11-29T22:12:29.197Z] > control.setup()
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.197Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_looponfail.py:220:
[2024-11-29T22:12:29.197Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.197Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/looponfail.py:97: in setup
[2024-11-29T22:12:29.197Z] remote_outchannel: execnet.Channel = channel.receive()
[2024-11-29T22:12:29.197Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:831: in receive
[2024-11-29T22:12:29.197Z] raise self._getremoteerror() or EOFError()
[2024-11-29T22:12:29.197Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:1049: in _thread_receiver
[2024-11-29T22:12:29.197Z] msg = Message.from_io(io)
[2024-11-29T22:12:29.197Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.197Z]
[2024-11-29T22:12:29.198Z] io = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191d424b0>
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] @staticmethod
[2024-11-29T22:12:29.198Z] def from_io(io):
[2024-11-29T22:12:29.198Z] try:
[2024-11-29T22:12:29.198Z] header = io.read(9) # type 1, channel 4, payload 4
[2024-11-29T22:12:29.198Z] if not header:
[2024-11-29T22:12:29.198Z] raise EOFError("empty read")
[2024-11-29T22:12:29.198Z] except EOFError:
[2024-11-29T22:12:29.198Z] e = sys.exc_info()[1]
[2024-11-29T22:12:29.198Z] > raise EOFError("couldn't load message header, " + e.args[0])
[2024-11-29T22:12:29.198Z] E EOFError: couldn't load message header, expected 9 bytes, got 0
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:512: EOFError
[2024-11-29T22:12:29.198Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.198Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.198Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.198Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_ignore_sys_path_hook_entry0
[2024-11-29T22:12:29.198Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.198Z] collected 0 items
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] ============================ no tests ran in 0.00s =============================
[2024-11-29T22:12:29.198Z] ----------------------------- Captured stderr call -----------------------------
[2024-11-29T22:12:29.198Z] Traceback (most recent call last):
[2024-11-29T22:12:29.198Z] File "<string>", line 1, in <module>
[2024-11-29T22:12:29.198Z] File "<string>", line 7, in <module>
[2024-11-29T22:12:29.198Z] File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.198Z] raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.198Z] ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.198Z] ______________ TestLooponFailing.test_looponfail_from_fail_to_ok _______________
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] io = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191d79310>
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] @staticmethod
[2024-11-29T22:12:29.198Z] def from_io(io):
[2024-11-29T22:12:29.198Z] try:
[2024-11-29T22:12:29.198Z] > header = io.read(9) # type 1, channel 4, payload 4
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:507:
[2024-11-29T22:12:29.198Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] self = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191d79310>
[2024-11-29T22:12:29.198Z] numbytes = 9
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] def read(self, numbytes):
[2024-11-29T22:12:29.198Z] """Read exactly 'numbytes' bytes from the pipe."""
[2024-11-29T22:12:29.198Z] # a file in non-blocking mode may return less bytes, so we loop
[2024-11-29T22:12:29.198Z] buf = b""
[2024-11-29T22:12:29.198Z] while numbytes > len(buf):
[2024-11-29T22:12:29.198Z] data = self._read(numbytes - len(buf))
[2024-11-29T22:12:29.198Z] if not data:
[2024-11-29T22:12:29.198Z] > raise EOFError("expected %d bytes, got %d" % (numbytes, len(buf)))
[2024-11-29T22:12:29.198Z] E EOFError: expected 9 bytes, got 0
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:476: EOFError
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] During handling of the above exception, another exception occurred:
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] self = <test_looponfail.TestLooponFailing object at 0x7a3192121e20>
[2024-11-29T22:12:29.198Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_looponfail_from_fail_to_ok0')>
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] def test_looponfail_from_fail_to_ok(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.198Z] modcol = pytester.getmodulecol(
[2024-11-29T22:12:29.198Z] textwrap.dedent(
[2024-11-29T22:12:29.198Z] """
[2024-11-29T22:12:29.198Z] def test_one():
[2024-11-29T22:12:29.198Z] x = 0
[2024-11-29T22:12:29.198Z] assert x == 1
[2024-11-29T22:12:29.198Z] def test_two():
[2024-11-29T22:12:29.198Z] assert 1
[2024-11-29T22:12:29.198Z] """
[2024-11-29T22:12:29.198Z] )
[2024-11-29T22:12:29.198Z] )
[2024-11-29T22:12:29.198Z] remotecontrol = RemoteControl(modcol.config)
[2024-11-29T22:12:29.198Z] > remotecontrol.loop_once()
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_looponfail.py:239:
[2024-11-29T22:12:29.198Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.198Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/looponfail.py:132: in loop_once
[2024-11-29T22:12:29.198Z] self.setup()
[2024-11-29T22:12:29.198Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/looponfail.py:97: in setup
[2024-11-29T22:12:29.198Z] remote_outchannel: execnet.Channel = channel.receive()
[2024-11-29T22:12:29.198Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:831: in receive
[2024-11-29T22:12:29.198Z] raise self._getremoteerror() or EOFError()
[2024-11-29T22:12:29.198Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:1049: in _thread_receiver
[2024-11-29T22:12:29.198Z] msg = Message.from_io(io)
[2024-11-29T22:12:29.198Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] io = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191d79310>
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] @staticmethod
[2024-11-29T22:12:29.198Z] def from_io(io):
[2024-11-29T22:12:29.198Z] try:
[2024-11-29T22:12:29.198Z] header = io.read(9) # type 1, channel 4, payload 4
[2024-11-29T22:12:29.198Z] if not header:
[2024-11-29T22:12:29.198Z] raise EOFError("empty read")
[2024-11-29T22:12:29.198Z] except EOFError:
[2024-11-29T22:12:29.198Z] e = sys.exc_info()[1]
[2024-11-29T22:12:29.198Z] > raise EOFError("couldn't load message header, " + e.args[0])
[2024-11-29T22:12:29.198Z] E EOFError: couldn't load message header, expected 9 bytes, got 0
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:512: EOFError
[2024-11-29T22:12:29.198Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.198Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.198Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.198Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_looponfail_from_fail_to_ok0
[2024-11-29T22:12:29.198Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.198Z] collected 0 items
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] ============================ no tests ran in 0.00s =============================
[2024-11-29T22:12:29.198Z] ----------------------------- Captured stderr call -----------------------------
[2024-11-29T22:12:29.198Z] Traceback (most recent call last):
[2024-11-29T22:12:29.198Z] File "<string>", line 1, in <module>
[2024-11-29T22:12:29.198Z] File "<string>", line 7, in <module>
[2024-11-29T22:12:29.198Z] File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.198Z] raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.198Z] ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.198Z] ___________ TestLooponFailing.test_looponfail_from_one_to_two_tests ____________
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] io = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191eb0f50>
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] @staticmethod
[2024-11-29T22:12:29.198Z] def from_io(io):
[2024-11-29T22:12:29.198Z] try:
[2024-11-29T22:12:29.198Z] > header = io.read(9) # type 1, channel 4, payload 4
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:507:
[2024-11-29T22:12:29.198Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] self = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191eb0f50>
[2024-11-29T22:12:29.198Z] numbytes = 9
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] def read(self, numbytes):
[2024-11-29T22:12:29.198Z] """Read exactly 'numbytes' bytes from the pipe."""
[2024-11-29T22:12:29.198Z] # a file in non-blocking mode may return less bytes, so we loop
[2024-11-29T22:12:29.198Z] buf = b""
[2024-11-29T22:12:29.198Z] while numbytes > len(buf):
[2024-11-29T22:12:29.198Z] data = self._read(numbytes - len(buf))
[2024-11-29T22:12:29.198Z] if not data:
[2024-11-29T22:12:29.198Z] > raise EOFError("expected %d bytes, got %d" % (numbytes, len(buf)))
[2024-11-29T22:12:29.198Z] E EOFError: expected 9 bytes, got 0
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:476: EOFError
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] During handling of the above exception, another exception occurred:
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] self = <test_looponfail.TestLooponFailing object at 0x7a3192122030>
[2024-11-29T22:12:29.198Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_looponfail_from_one_to_two_tests0')>
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] def test_looponfail_from_one_to_two_tests(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.198Z] modcol = pytester.getmodulecol(
[2024-11-29T22:12:29.198Z] textwrap.dedent(
[2024-11-29T22:12:29.198Z] """
[2024-11-29T22:12:29.198Z] def test_one():
[2024-11-29T22:12:29.198Z] assert 0
[2024-11-29T22:12:29.198Z] """
[2024-11-29T22:12:29.198Z] )
[2024-11-29T22:12:29.198Z] )
[2024-11-29T22:12:29.198Z] remotecontrol = RemoteControl(modcol.config)
[2024-11-29T22:12:29.198Z] > remotecontrol.loop_once()
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_looponfail.py:266:
[2024-11-29T22:12:29.198Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.198Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/looponfail.py:132: in loop_once
[2024-11-29T22:12:29.198Z] self.setup()
[2024-11-29T22:12:29.198Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/looponfail.py:97: in setup
[2024-11-29T22:12:29.198Z] remote_outchannel: execnet.Channel = channel.receive()
[2024-11-29T22:12:29.198Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:831: in receive
[2024-11-29T22:12:29.198Z] raise self._getremoteerror() or EOFError()
[2024-11-29T22:12:29.198Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:1049: in _thread_receiver
[2024-11-29T22:12:29.198Z] msg = Message.from_io(io)
[2024-11-29T22:12:29.198Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] io = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191eb0f50>
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] @staticmethod
[2024-11-29T22:12:29.198Z] def from_io(io):
[2024-11-29T22:12:29.198Z] try:
[2024-11-29T22:12:29.198Z] header = io.read(9) # type 1, channel 4, payload 4
[2024-11-29T22:12:29.198Z] if not header:
[2024-11-29T22:12:29.198Z] raise EOFError("empty read")
[2024-11-29T22:12:29.198Z] except EOFError:
[2024-11-29T22:12:29.198Z] e = sys.exc_info()[1]
[2024-11-29T22:12:29.198Z] > raise EOFError("couldn't load message header, " + e.args[0])
[2024-11-29T22:12:29.198Z] E EOFError: couldn't load message header, expected 9 bytes, got 0
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:512: EOFError
[2024-11-29T22:12:29.198Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.198Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.198Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.198Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_looponfail_from_one_to_two_tests0
[2024-11-29T22:12:29.198Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.198Z] collected 0 items
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] ============================ no tests ran in 0.00s =============================
[2024-11-29T22:12:29.198Z] ----------------------------- Captured stderr call -----------------------------
[2024-11-29T22:12:29.198Z] Traceback (most recent call last):
[2024-11-29T22:12:29.198Z] File "<string>", line 1, in <module>
[2024-11-29T22:12:29.198Z] File "<string>", line 7, in <module>
[2024-11-29T22:12:29.198Z] File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.198Z] raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.198Z] ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.198Z] ______________ TestLooponFailing.test_looponfail_multiple_errors _______________
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] io = <execnet.gateway_io.Popen2IOMaster object at 0x7a31918a6fc0>
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] @staticmethod
[2024-11-29T22:12:29.198Z] def from_io(io):
[2024-11-29T22:12:29.198Z] try:
[2024-11-29T22:12:29.198Z] > header = io.read(9) # type 1, channel 4, payload 4
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:507:
[2024-11-29T22:12:29.198Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] self = <execnet.gateway_io.Popen2IOMaster object at 0x7a31918a6fc0>
[2024-11-29T22:12:29.198Z] numbytes = 9
[2024-11-29T22:12:29.198Z]
[2024-11-29T22:12:29.198Z] def read(self, numbytes):
[2024-11-29T22:12:29.198Z] """Read exactly 'numbytes' bytes from the pipe."""
[2024-11-29T22:12:29.198Z] # a file in non-blocking mode may return less bytes, so we loop
[2024-11-29T22:12:29.198Z] buf = b""
[2024-11-29T22:12:29.198Z] while numbytes > len(buf):
[2024-11-29T22:12:29.199Z] data = self._read(numbytes - len(buf))
[2024-11-29T22:12:29.199Z] if not data:
[2024-11-29T22:12:29.199Z] > raise EOFError("expected %d bytes, got %d" % (numbytes, len(buf)))
[2024-11-29T22:12:29.199Z] E EOFError: expected 9 bytes, got 0
[2024-11-29T22:12:29.199Z]
[2024-11-29T22:12:29.199Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:476: EOFError
[2024-11-29T22:12:29.199Z]
[2024-11-29T22:12:29.199Z] During handling of the above exception, another exception occurred:
[2024-11-29T22:12:29.199Z]
[2024-11-29T22:12:29.199Z] self = <test_looponfail.TestLooponFailing object at 0x7a3192122480>
[2024-11-29T22:12:29.199Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_looponfail_multiple_errors0')>
[2024-11-29T22:12:29.199Z] monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7a319236f9e0>
[2024-11-29T22:12:29.199Z]
[2024-11-29T22:12:29.199Z] def test_looponfail_multiple_errors(
[2024-11-29T22:12:29.199Z] self, pytester: pytest.Pytester, monkeypatch: pytest.MonkeyPatch
[2024-11-29T22:12:29.199Z] ) -> None:
[2024-11-29T22:12:29.199Z] modcol = pytester.getmodulecol(
[2024-11-29T22:12:29.199Z] textwrap.dedent(
[2024-11-29T22:12:29.199Z] """
[2024-11-29T22:12:29.199Z] def test_one():
[2024-11-29T22:12:29.199Z] assert 0
[2024-11-29T22:12:29.199Z] """
[2024-11-29T22:12:29.199Z] )
[2024-11-29T22:12:29.199Z] )
[2024-11-29T22:12:29.199Z] remotecontrol = RemoteControl(modcol.config)
[2024-11-29T22:12:29.199Z] orig_runsession = remotecontrol.runsession
[2024-11-29T22:12:29.199Z]
[2024-11-29T22:12:29.199Z] def runsession_dups() -> tuple[list[str], list[str], bool]:
[2024-11-29T22:12:29.199Z] # twisted.trial test cases may report multiple errors.
[2024-11-29T22:12:29.199Z] failures, reports, collection_failed = orig_runsession()
[2024-11-29T22:12:29.199Z] print(failures)
[2024-11-29T22:12:29.199Z] return failures * 2, reports, collection_failed
[2024-11-29T22:12:29.199Z]
[2024-11-29T22:12:29.199Z] monkeypatch.setattr(remotecontrol, "runsession", runsession_dups)
[2024-11-29T22:12:29.199Z] > remotecontrol.loop_once()
[2024-11-29T22:12:29.199Z]
[2024-11-29T22:12:29.199Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_looponfail.py:342:
[2024-11-29T22:12:29.199Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.199Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/looponfail.py:132: in loop_once
[2024-11-29T22:12:29.199Z] self.setup()
[2024-11-29T22:12:29.199Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/looponfail.py:97: in setup
[2024-11-29T22:12:29.199Z] remote_outchannel: execnet.Channel = channel.receive()
[2024-11-29T22:12:29.199Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:831: in receive
[2024-11-29T22:12:29.199Z] raise self._getremoteerror() or EOFError()
[2024-11-29T22:12:29.199Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:1049: in _thread_receiver
[2024-11-29T22:12:29.199Z] msg = Message.from_io(io)
[2024-11-29T22:12:29.199Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.199Z]
[2024-11-29T22:12:29.199Z] io = <execnet.gateway_io.Popen2IOMaster object at 0x7a31918a6fc0>
[2024-11-29T22:12:29.199Z]
[2024-11-29T22:12:29.199Z] @staticmethod
[2024-11-29T22:12:29.199Z] def from_io(io):
[2024-11-29T22:12:29.199Z] try:
[2024-11-29T22:12:29.199Z] header = io.read(9) # type 1, channel 4, payload 4
[2024-11-29T22:12:29.199Z] if not header:
[2024-11-29T22:12:29.199Z] raise EOFError("empty read")
[2024-11-29T22:12:29.199Z] except EOFError:
[2024-11-29T22:12:29.199Z] e = sys.exc_info()[1]
[2024-11-29T22:12:29.199Z] > raise EOFError("couldn't load message header, " + e.args[0])
[2024-11-29T22:12:29.199Z] E EOFError: couldn't load message header, expected 9 bytes, got 0
[2024-11-29T22:12:29.199Z]
[2024-11-29T22:12:29.199Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:512: EOFError
[2024-11-29T22:12:29.199Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.199Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.199Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.199Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_looponfail_multiple_errors0
[2024-11-29T22:12:29.199Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.199Z] collected 0 items
[2024-11-29T22:12:29.199Z]
[2024-11-29T22:12:29.199Z] ============================ no tests ran in 0.00s =============================
[2024-11-29T22:12:29.199Z] ----------------------------- Captured stderr call -----------------------------
[2024-11-29T22:12:29.199Z] Traceback (most recent call last):
[2024-11-29T22:12:29.199Z] File "<string>", line 1, in <module>
[2024-11-29T22:12:29.199Z] File "<string>", line 7, in <module>
[2024-11-29T22:12:29.199Z] File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.199Z] raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.199Z] ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.199Z] _______________________ TestHooks.test_runtest_logreport _______________________
[2024-11-29T22:12:29.199Z]
[2024-11-29T22:12:29.199Z] self = <test_newhooks.TestHooks object at 0x7a3192120920>
[2024-11-29T22:12:29.199Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_runtest_logreport0')>
[2024-11-29T22:12:29.199Z]
[2024-11-29T22:12:29.199Z] def test_runtest_logreport(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.199Z] """Test that log reports from pytest_runtest_logreport when running with
[2024-11-29T22:12:29.199Z] xdist contain "node", "nodeid", "worker_id", and "testrun_uid"
[2024-11-29T22:12:29.199Z] attributes (#8)."""
[2024-11-29T22:12:29.199Z] pytester.makeconftest(
[2024-11-29T22:12:29.199Z] """
[2024-11-29T22:12:29.199Z] def pytest_runtest_logreport(report):
[2024-11-29T22:12:29.199Z] if hasattr(report, 'node'):
[2024-11-29T22:12:29.199Z] if report.when == "call":
[2024-11-29T22:12:29.199Z] workerid = report.node.workerinput['workerid']
[2024-11-29T22:12:29.199Z] testrunuid = report.node.workerinput['testrunuid']
[2024-11-29T22:12:29.199Z] if workerid != report.worker_id:
[2024-11-29T22:12:29.199Z] print("HOOK: Worker id mismatch: %s %s"
[2024-11-29T22:12:29.199Z] % (workerid, report.worker_id))
[2024-11-29T22:12:29.199Z] elif testrunuid != report.testrun_uid:
[2024-11-29T22:12:29.199Z] print("HOOK: Testrun uid mismatch: %s %s"
[2024-11-29T22:12:29.199Z] % (testrunuid, report.testrun_uid))
[2024-11-29T22:12:29.199Z] else:
[2024-11-29T22:12:29.199Z] print("HOOK: %s %s %s"
[2024-11-29T22:12:29.199Z] % (report.nodeid, report.worker_id, report.testrun_uid))
[2024-11-29T22:12:29.199Z] """
[2024-11-29T22:12:29.199Z] )
[2024-11-29T22:12:29.199Z] res = pytester.runpytest("-n1", "-s")
[2024-11-29T22:12:29.199Z] > res.stdout.fnmatch_lines(
[2024-11-29T22:12:29.199Z] [
[2024-11-29T22:12:29.199Z] "*HOOK: test_runtest_logreport.py::test_a gw0 *",
[2024-11-29T22:12:29.199Z] "*HOOK: test_runtest_logreport.py::test_b gw0 *",
[2024-11-29T22:12:29.199Z] "*HOOK: test_runtest_logreport.py::test_c gw0 *",
[2024-11-29T22:12:29.199Z] "*3 passed*",
[2024-11-29T22:12:29.199Z] ]
[2024-11-29T22:12:29.199Z] )
[2024-11-29T22:12:29.199Z] E Failed: nomatch: '*HOOK: test_runtest_logreport.py::test_a gw0 *'
[2024-11-29T22:12:29.199Z] E and: '============================= test session starts =============================='
[2024-11-29T22:12:29.199Z] E and: 'platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0'
[2024-11-29T22:12:29.199Z] E and: 'rootdir: /tmp/pytest-of-builduser/pytest-0/test_runtest_logreport0'
[2024-11-29T22:12:29.199Z] E and: 'plugins: xdist-3.6.1'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> Traceback (most recent call last):'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> config.hook.pytest_sessionstart(session=session)'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> return outcome.get_result()'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> raise exc.with_traceback(exc.__traceback__)'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> result = func()'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> ^^^^^^'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> raise exception.with_traceback(exception.__traceback__)'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> return (yield)'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> ^^^^^'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> res = hook_impl.function(*args)'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> self.nodemanager = NodeManager(self.config)'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> self.set_execmodel(execmodel)'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> self._execmodel = get_execmodel(execmodel)'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel'
[2024-11-29T22:12:29.199Z] E and: 'INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")'
[2024-11-29T22:12:29.199Z] E and: "INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'"
[2024-11-29T22:12:29.199Z] E remains unmatched: '*HOOK: test_runtest_logreport.py::test_a gw0 *'
[2024-11-29T22:12:29.199Z]
[2024-11-29T22:12:29.199Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_newhooks.py:39: Failed
[2024-11-29T22:12:29.199Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.199Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.199Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.199Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_runtest_logreport0
[2024-11-29T22:12:29.199Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.199Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.199Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.199Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.199Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.199Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.199Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.199Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.199Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.199Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.200Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.200Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.200Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.200Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.200Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.200Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.200Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.200Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.200Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.200Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.200Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.200Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.200Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.200Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.200Z] ___________________ TestHooks.test_node_collection_finished ____________________
[2024-11-29T22:12:29.200Z]
[2024-11-29T22:12:29.200Z] self = <test_newhooks.TestHooks object at 0x7a3192122c30>
[2024-11-29T22:12:29.200Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_node_collection_finished0')>
[2024-11-29T22:12:29.200Z]
[2024-11-29T22:12:29.200Z] def test_node_collection_finished(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.200Z] """Test pytest_xdist_node_collection_finished hook (#8)."""
[2024-11-29T22:12:29.200Z] pytester.makeconftest(
[2024-11-29T22:12:29.200Z] """
[2024-11-29T22:12:29.200Z] def pytest_xdist_node_collection_finished(node, ids):
[2024-11-29T22:12:29.200Z] workerid = node.workerinput['workerid']
[2024-11-29T22:12:29.200Z] stripped_ids = [x.split('::')[1] for x in ids]
[2024-11-29T22:12:29.200Z] print("HOOK: %s %s" % (workerid, ', '.join(stripped_ids)))
[2024-11-29T22:12:29.200Z] """
[2024-11-29T22:12:29.200Z] )
[2024-11-29T22:12:29.200Z] res = pytester.runpytest("-n2", "-s")
[2024-11-29T22:12:29.200Z] > res.stdout.fnmatch_lines_random(
[2024-11-29T22:12:29.200Z] ["*HOOK: gw0 test_a, test_b, test_c", "*HOOK: gw1 test_a, test_b, test_c"]
[2024-11-29T22:12:29.200Z] )
[2024-11-29T22:12:29.200Z] E Failed: line '*HOOK: gw0 test_a, test_b, test_c' not found in output
[2024-11-29T22:12:29.200Z]
[2024-11-29T22:12:29.200Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_newhooks.py:59: Failed
[2024-11-29T22:12:29.200Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.200Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.200Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.200Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_node_collection_finished0
[2024-11-29T22:12:29.200Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.200Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.200Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.200Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.200Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.200Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.200Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.200Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.200Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.200Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.200Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.200Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.200Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.200Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.200Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.200Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.200Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.200Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.200Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.200Z] ______________________ TestCrashItem.test_handlecrashitem ______________________
[2024-11-29T22:12:29.200Z]
[2024-11-29T22:12:29.200Z] self = <test_newhooks.TestCrashItem object at 0x7a3192122f60>
[2024-11-29T22:12:29.200Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_handlecrashitem0')>
[2024-11-29T22:12:29.200Z]
[2024-11-29T22:12:29.200Z] def test_handlecrashitem(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.200Z] """Test pytest_handlecrashitem hook."""
[2024-11-29T22:12:29.200Z] pytester.makeconftest(
[2024-11-29T22:12:29.200Z] """
[2024-11-29T22:12:29.200Z] test_runs = 0
[2024-11-29T22:12:29.200Z]
[2024-11-29T22:12:29.200Z] def pytest_handlecrashitem(crashitem, report, sched):
[2024-11-29T22:12:29.200Z] global test_runs
[2024-11-29T22:12:29.200Z]
[2024-11-29T22:12:29.200Z] if test_runs == 0:
[2024-11-29T22:12:29.200Z] sched.mark_test_pending(crashitem)
[2024-11-29T22:12:29.200Z] test_runs = 1
[2024-11-29T22:12:29.200Z] else:
[2024-11-29T22:12:29.200Z] print("HOOK: pytest_handlecrashitem")
[2024-11-29T22:12:29.200Z] """
[2024-11-29T22:12:29.200Z] )
[2024-11-29T22:12:29.200Z] res = pytester.runpytest("-n2", "-s")
[2024-11-29T22:12:29.200Z] > res.stdout.fnmatch_lines_random(["*HOOK: pytest_handlecrashitem"])
[2024-11-29T22:12:29.200Z] E Failed: line '*HOOK: pytest_handlecrashitem' not found in output
[2024-11-29T22:12:29.200Z]
[2024-11-29T22:12:29.200Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_newhooks.py:95: Failed
[2024-11-29T22:12:29.200Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.200Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.200Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.200Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_handlecrashitem0
[2024-11-29T22:12:29.200Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.200Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.200Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.200Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.200Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.200Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.200Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.200Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.200Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.200Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.200Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.200Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.201Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.201Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.201Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.201Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.201Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.201Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.201Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.201Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.201Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.201Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.201Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.201Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.201Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.201Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.201Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.201Z] ____________________ TestCrashItem.test_handlecrashitem_one ____________________
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] self = <test_newhooks.TestCrashItem object at 0x7a3192123200>
[2024-11-29T22:12:29.201Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_handlecrashitem_one0')>
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] def test_handlecrashitem_one(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.201Z] """Test pytest_handlecrashitem hook with just one test."""
[2024-11-29T22:12:29.201Z] pytester.makeconftest(
[2024-11-29T22:12:29.201Z] """
[2024-11-29T22:12:29.201Z] test_runs = 0
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] def pytest_handlecrashitem(crashitem, report, sched):
[2024-11-29T22:12:29.201Z] global test_runs
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] if test_runs == 0:
[2024-11-29T22:12:29.201Z] sched.mark_test_pending(crashitem)
[2024-11-29T22:12:29.201Z] test_runs = 1
[2024-11-29T22:12:29.201Z] else:
[2024-11-29T22:12:29.201Z] print("HOOK: pytest_handlecrashitem")
[2024-11-29T22:12:29.201Z] """
[2024-11-29T22:12:29.201Z] )
[2024-11-29T22:12:29.201Z] res = pytester.runpytest("-n1", "-s", "-k", "test_b")
[2024-11-29T22:12:29.201Z] > res.stdout.fnmatch_lines_random(["*HOOK: pytest_handlecrashitem"])
[2024-11-29T22:12:29.201Z] E Failed: line '*HOOK: pytest_handlecrashitem' not found in output
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_newhooks.py:115: Failed
[2024-11-29T22:12:29.201Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.201Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.201Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.201Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_handlecrashitem_one0
[2024-11-29T22:12:29.201Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.201Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.201Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.201Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.201Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.201Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.201Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.201Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.201Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.201Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.201Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.201Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.201Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.201Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.201Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.201Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.201Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.201Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.201Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.201Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.201Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.201Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.201Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.201Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.201Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.201Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.201Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.201Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.201Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.201Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.201Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.201Z] ___________________________ test_testrunuid_provided ___________________________
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_testrunuid_provided0')>
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] def test_testrunuid_provided(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.201Z] config = pytester.parseconfigure("--testrunuid", "test123", "--tx=popen")
[2024-11-29T22:12:29.201Z] > nm = NodeManager(config)
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_plugin.py:284:
[2024-11-29T22:12:29.201Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.201Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:59: in __init__
[2024-11-29T22:12:29.201Z] self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.201Z] /usr/lib/python3.12/site-packages/execnet/multi.py:39: in __init__
[2024-11-29T22:12:29.201Z] self.set_execmodel(execmodel)
[2024-11-29T22:12:29.201Z] /usr/lib/python3.12/site-packages/execnet/multi.py:69: in set_execmodel
[2024-11-29T22:12:29.201Z] self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.201Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] backend = 'main_thread_only'
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] def get_execmodel(backend):
[2024-11-29T22:12:29.201Z] if hasattr(backend, "backend"):
[2024-11-29T22:12:29.201Z] return backend
[2024-11-29T22:12:29.201Z] if backend == "thread":
[2024-11-29T22:12:29.201Z] return ThreadExecModel()
[2024-11-29T22:12:29.201Z] elif backend == "eventlet":
[2024-11-29T22:12:29.201Z] return EventletExecModel()
[2024-11-29T22:12:29.201Z] elif backend == "gevent":
[2024-11-29T22:12:29.201Z] return GeventExecModel()
[2024-11-29T22:12:29.201Z] else:
[2024-11-29T22:12:29.201Z] > raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.201Z] E ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:262: ValueError
[2024-11-29T22:12:29.201Z] __________________________ test_testrunuid_generated ___________________________
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_testrunuid_generated0')>
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] def test_testrunuid_generated(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.201Z] config = pytester.parseconfigure("--tx=popen")
[2024-11-29T22:12:29.201Z] > nm = NodeManager(config)
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_plugin.py:290:
[2024-11-29T22:12:29.201Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.201Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:59: in __init__
[2024-11-29T22:12:29.201Z] self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.201Z] /usr/lib/python3.12/site-packages/execnet/multi.py:39: in __init__
[2024-11-29T22:12:29.201Z] self.set_execmodel(execmodel)
[2024-11-29T22:12:29.201Z] /usr/lib/python3.12/site-packages/execnet/multi.py:69: in set_execmodel
[2024-11-29T22:12:29.201Z] self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.201Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] backend = 'main_thread_only'
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] def get_execmodel(backend):
[2024-11-29T22:12:29.201Z] if hasattr(backend, "backend"):
[2024-11-29T22:12:29.201Z] return backend
[2024-11-29T22:12:29.201Z] if backend == "thread":
[2024-11-29T22:12:29.201Z] return ThreadExecModel()
[2024-11-29T22:12:29.201Z] elif backend == "eventlet":
[2024-11-29T22:12:29.201Z] return EventletExecModel()
[2024-11-29T22:12:29.201Z] elif backend == "gevent":
[2024-11-29T22:12:29.201Z] return GeventExecModel()
[2024-11-29T22:12:29.201Z] else:
[2024-11-29T22:12:29.201Z] > raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.201Z] E ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:262: ValueError
[2024-11-29T22:12:29.201Z] ________________________ TestDistOptions.test_getxspecs ________________________
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] self = <test_plugin.TestDistOptions object at 0x7a319210d3d0>
[2024-11-29T22:12:29.201Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_getxspecs0')>
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] def test_getxspecs(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.201Z] config = pytester.parseconfigure("--tx=popen", "--tx", "ssh=xyz")
[2024-11-29T22:12:29.201Z] > nodemanager = NodeManager(config)
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_plugin.py:297:
[2024-11-29T22:12:29.201Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.201Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:59: in __init__
[2024-11-29T22:12:29.201Z] self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.201Z] /usr/lib/python3.12/site-packages/execnet/multi.py:39: in __init__
[2024-11-29T22:12:29.201Z] self.set_execmodel(execmodel)
[2024-11-29T22:12:29.201Z] /usr/lib/python3.12/site-packages/execnet/multi.py:69: in set_execmodel
[2024-11-29T22:12:29.201Z] self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.201Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] backend = 'main_thread_only'
[2024-11-29T22:12:29.201Z]
[2024-11-29T22:12:29.201Z] def get_execmodel(backend):
[2024-11-29T22:12:29.201Z] if hasattr(backend, "backend"):
[2024-11-29T22:12:29.201Z] return backend
[2024-11-29T22:12:29.202Z] if backend == "thread":
[2024-11-29T22:12:29.202Z] return ThreadExecModel()
[2024-11-29T22:12:29.202Z] elif backend == "eventlet":
[2024-11-29T22:12:29.202Z] return EventletExecModel()
[2024-11-29T22:12:29.202Z] elif backend == "gevent":
[2024-11-29T22:12:29.202Z] return GeventExecModel()
[2024-11-29T22:12:29.202Z] else:
[2024-11-29T22:12:29.202Z] > raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.202Z] E ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:262: ValueError
[2024-11-29T22:12:29.202Z] ____________________ TestDistOptions.test_xspecs_multiplied ____________________
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] self = <test_plugin.TestDistOptions object at 0x7a319210d340>
[2024-11-29T22:12:29.202Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_xspecs_multiplied0')>
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] def test_xspecs_multiplied(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.202Z] config = pytester.parseconfigure("--tx=3*popen")
[2024-11-29T22:12:29.202Z] > xspecs = NodeManager(config)._getxspecs()
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_plugin.py:306:
[2024-11-29T22:12:29.202Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.202Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:59: in __init__
[2024-11-29T22:12:29.202Z] self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.202Z] /usr/lib/python3.12/site-packages/execnet/multi.py:39: in __init__
[2024-11-29T22:12:29.202Z] self.set_execmodel(execmodel)
[2024-11-29T22:12:29.202Z] /usr/lib/python3.12/site-packages/execnet/multi.py:69: in set_execmodel
[2024-11-29T22:12:29.202Z] self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.202Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] backend = 'main_thread_only'
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] def get_execmodel(backend):
[2024-11-29T22:12:29.202Z] if hasattr(backend, "backend"):
[2024-11-29T22:12:29.202Z] return backend
[2024-11-29T22:12:29.202Z] if backend == "thread":
[2024-11-29T22:12:29.202Z] return ThreadExecModel()
[2024-11-29T22:12:29.202Z] elif backend == "eventlet":
[2024-11-29T22:12:29.202Z] return EventletExecModel()
[2024-11-29T22:12:29.202Z] elif backend == "gevent":
[2024-11-29T22:12:29.202Z] return GeventExecModel()
[2024-11-29T22:12:29.202Z] else:
[2024-11-29T22:12:29.202Z] > raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.202Z] E ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:262: ValueError
[2024-11-29T22:12:29.202Z] ______________________ TestDistOptions.test_getrsyncdirs _______________________
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] self = <test_plugin.TestDistOptions object at 0x7a319210d0d0>
[2024-11-29T22:12:29.202Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_getrsyncdirs0')>
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] def test_getrsyncdirs(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.202Z] config = pytester.parseconfigure("--rsyncdir=" + str(pytester.path))
[2024-11-29T22:12:29.202Z] > nm = NodeManager(config, specs=[execnet.XSpec("popen")])
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_plugin.py:312:
[2024-11-29T22:12:29.202Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.202Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:59: in __init__
[2024-11-29T22:12:29.202Z] self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.202Z] /usr/lib/python3.12/site-packages/execnet/multi.py:39: in __init__
[2024-11-29T22:12:29.202Z] self.set_execmodel(execmodel)
[2024-11-29T22:12:29.202Z] /usr/lib/python3.12/site-packages/execnet/multi.py:69: in set_execmodel
[2024-11-29T22:12:29.202Z] self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.202Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] backend = 'main_thread_only'
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] def get_execmodel(backend):
[2024-11-29T22:12:29.202Z] if hasattr(backend, "backend"):
[2024-11-29T22:12:29.202Z] return backend
[2024-11-29T22:12:29.202Z] if backend == "thread":
[2024-11-29T22:12:29.202Z] return ThreadExecModel()
[2024-11-29T22:12:29.202Z] elif backend == "eventlet":
[2024-11-29T22:12:29.202Z] return EventletExecModel()
[2024-11-29T22:12:29.202Z] elif backend == "gevent":
[2024-11-29T22:12:29.202Z] return GeventExecModel()
[2024-11-29T22:12:29.202Z] else:
[2024-11-29T22:12:29.202Z] > raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.202Z] E ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:262: ValueError
[2024-11-29T22:12:29.202Z] _____________________ TestDistOptions.test_getrsyncignore ______________________
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] self = <test_plugin.TestDistOptions object at 0x7a319210cda0>
[2024-11-29T22:12:29.202Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_getrsyncignore0')>
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] def test_getrsyncignore(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.202Z] config = pytester.parseconfigure("--rsyncignore=fo*")
[2024-11-29T22:12:29.202Z] > nm = NodeManager(config, specs=[execnet.XSpec("popen//chdir=qwe")])
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_plugin.py:320:
[2024-11-29T22:12:29.202Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.202Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:59: in __init__
[2024-11-29T22:12:29.202Z] self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.202Z] /usr/lib/python3.12/site-packages/execnet/multi.py:39: in __init__
[2024-11-29T22:12:29.202Z] self.set_execmodel(execmodel)
[2024-11-29T22:12:29.202Z] /usr/lib/python3.12/site-packages/execnet/multi.py:69: in set_execmodel
[2024-11-29T22:12:29.202Z] self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.202Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] backend = 'main_thread_only'
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] def get_execmodel(backend):
[2024-11-29T22:12:29.202Z] if hasattr(backend, "backend"):
[2024-11-29T22:12:29.202Z] return backend
[2024-11-29T22:12:29.202Z] if backend == "thread":
[2024-11-29T22:12:29.202Z] return ThreadExecModel()
[2024-11-29T22:12:29.202Z] elif backend == "eventlet":
[2024-11-29T22:12:29.202Z] return EventletExecModel()
[2024-11-29T22:12:29.202Z] elif backend == "gevent":
[2024-11-29T22:12:29.202Z] return GeventExecModel()
[2024-11-29T22:12:29.202Z] else:
[2024-11-29T22:12:29.202Z] > raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.202Z] E ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:262: ValueError
[2024-11-29T22:12:29.202Z] _______________ TestDistOptions.test_getrsyncdirs_with_conftest ________________
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] self = <test_plugin.TestDistOptions object at 0x7a319210c8c0>
[2024-11-29T22:12:29.202Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_getrsyncdirs_with_conftest0')>
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] def test_getrsyncdirs_with_conftest(self, pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.202Z] p = Path.cwd()
[2024-11-29T22:12:29.202Z] for bn in ("x", "y", "z"):
[2024-11-29T22:12:29.202Z] p.joinpath(bn).mkdir()
[2024-11-29T22:12:29.202Z] pytester.makeini(
[2024-11-29T22:12:29.202Z] """
[2024-11-29T22:12:29.202Z] [pytest]
[2024-11-29T22:12:29.202Z] rsyncdirs= x
[2024-11-29T22:12:29.202Z] """
[2024-11-29T22:12:29.202Z] )
[2024-11-29T22:12:29.202Z] config = pytester.parseconfigure(pytester.path, "--rsyncdir=y", "--rsyncdir=z")
[2024-11-29T22:12:29.202Z] > nm = NodeManager(config, specs=[execnet.XSpec("popen//chdir=xyz")])
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_plugin.py:334:
[2024-11-29T22:12:29.202Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.202Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:59: in __init__
[2024-11-29T22:12:29.202Z] self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.202Z] /usr/lib/python3.12/site-packages/execnet/multi.py:39: in __init__
[2024-11-29T22:12:29.202Z] self.set_execmodel(execmodel)
[2024-11-29T22:12:29.202Z] /usr/lib/python3.12/site-packages/execnet/multi.py:69: in set_execmodel
[2024-11-29T22:12:29.202Z] self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.202Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] backend = 'main_thread_only'
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] def get_execmodel(backend):
[2024-11-29T22:12:29.202Z] if hasattr(backend, "backend"):
[2024-11-29T22:12:29.202Z] return backend
[2024-11-29T22:12:29.202Z] if backend == "thread":
[2024-11-29T22:12:29.202Z] return ThreadExecModel()
[2024-11-29T22:12:29.202Z] elif backend == "eventlet":
[2024-11-29T22:12:29.202Z] return EventletExecModel()
[2024-11-29T22:12:29.202Z] elif backend == "gevent":
[2024-11-29T22:12:29.202Z] return GeventExecModel()
[2024-11-29T22:12:29.202Z] else:
[2024-11-29T22:12:29.202Z] > raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.202Z] E ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:262: ValueError
[2024-11-29T22:12:29.202Z] _____________ TestWorkerInteractor.test_basic_collect_and_runtests _____________
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] self = <test_remote.TestWorkerInteractor object at 0x7a319210e210>
[2024-11-29T22:12:29.202Z] worker = <test_remote.WorkerSetup object at 0x7a3192309b20>
[2024-11-29T22:12:29.202Z] unserialize_report = <function TestWorkerInteractor.unserialize_report.<locals>.unserialize at 0x7a31917bd9e0>
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] def test_basic_collect_and_runtests(
[2024-11-29T22:12:29.202Z] self, worker: WorkerSetup, unserialize_report: UnserializerReport
[2024-11-29T22:12:29.202Z] ) -> None:
[2024-11-29T22:12:29.202Z] worker.pytester.makepyfile(
[2024-11-29T22:12:29.202Z] """
[2024-11-29T22:12:29.202Z] def test_func():
[2024-11-29T22:12:29.202Z] pass
[2024-11-29T22:12:29.202Z] """
[2024-11-29T22:12:29.202Z] )
[2024-11-29T22:12:29.202Z] > worker.setup()
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_remote.py:116:
[2024-11-29T22:12:29.202Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.202Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_remote.py:69: in setup
[2024-11-29T22:12:29.202Z] self.slp.setup()
[2024-11-29T22:12:29.202Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:319: in setup
[2024-11-29T22:12:29.202Z] self.gateway._rinfo()
[2024-11-29T22:12:29.202Z] /usr/lib/python3.12/site-packages/execnet/gateway.py:77: in _rinfo
[2024-11-29T22:12:29.202Z] ch = self.remote_exec(rinfo_source)
[2024-11-29T22:12:29.202Z] /usr/lib/python3.12/site-packages/execnet/gateway.py:130: in remote_exec
[2024-11-29T22:12:29.202Z] channel = self.newchannel()
[2024-11-29T22:12:29.202Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:1097: in newchannel
[2024-11-29T22:12:29.202Z] return self._channelfactory.new()
[2024-11-29T22:12:29.202Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] self = <execnet.gateway_base.ChannelFactory object at 0x7a3193703da0>, id = None
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] def new(self, id=None):
[2024-11-29T22:12:29.202Z] """create a new Channel with 'id' (or create new id if None)."""
[2024-11-29T22:12:29.202Z] with self._writelock:
[2024-11-29T22:12:29.202Z] if self.finished:
[2024-11-29T22:12:29.202Z] > raise OSError(f"connection already closed: {self.gateway}")
[2024-11-29T22:12:29.202Z] E OSError: connection already closed: <Gateway id='gw9' not-receiving, thread model, 0 active channels>
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:875: OSError
[2024-11-29T22:12:29.202Z] ----------------------------- Captured stderr call -----------------------------
[2024-11-29T22:12:29.202Z] Traceback (most recent call last):
[2024-11-29T22:12:29.202Z] File "<string>", line 1, in <module>
[2024-11-29T22:12:29.202Z] File "<string>", line 7, in <module>
[2024-11-29T22:12:29.202Z] File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.202Z] raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.202Z] ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.202Z] ________________ TestWorkerInteractor.test_remote_collect_skip _________________
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] self = <test_remote.TestWorkerInteractor object at 0x7a319210d880>
[2024-11-29T22:12:29.202Z] worker = <test_remote.WorkerSetup object at 0x7a3191ceb140>
[2024-11-29T22:12:29.202Z] unserialize_report = <function TestWorkerInteractor.unserialize_report.<locals>.unserialize at 0x7a319180dbc0>
[2024-11-29T22:12:29.202Z]
[2024-11-29T22:12:29.202Z] def test_remote_collect_skip(
[2024-11-29T22:12:29.203Z] self, worker: WorkerSetup, unserialize_report: UnserializerReport
[2024-11-29T22:12:29.203Z] ) -> None:
[2024-11-29T22:12:29.203Z] worker.pytester.makepyfile(
[2024-11-29T22:12:29.203Z] """
[2024-11-29T22:12:29.203Z] import pytest
[2024-11-29T22:12:29.203Z] pytest.skip("hello", allow_module_level=True)
[2024-11-29T22:12:29.203Z] """
[2024-11-29T22:12:29.203Z] )
[2024-11-29T22:12:29.203Z] > worker.setup()
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_remote.py:150:
[2024-11-29T22:12:29.203Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.203Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_remote.py:69: in setup
[2024-11-29T22:12:29.203Z] self.slp.setup()
[2024-11-29T22:12:29.203Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:319: in setup
[2024-11-29T22:12:29.203Z] self.gateway._rinfo()
[2024-11-29T22:12:29.203Z] /usr/lib/python3.12/site-packages/execnet/gateway.py:77: in _rinfo
[2024-11-29T22:12:29.203Z] ch = self.remote_exec(rinfo_source)
[2024-11-29T22:12:29.203Z] /usr/lib/python3.12/site-packages/execnet/gateway.py:130: in remote_exec
[2024-11-29T22:12:29.203Z] channel = self.newchannel()
[2024-11-29T22:12:29.203Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:1097: in newchannel
[2024-11-29T22:12:29.203Z] return self._channelfactory.new()
[2024-11-29T22:12:29.203Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] self = <execnet.gateway_base.ChannelFactory object at 0x7a31918a57f0>, id = None
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] def new(self, id=None):
[2024-11-29T22:12:29.203Z] """create a new Channel with 'id' (or create new id if None)."""
[2024-11-29T22:12:29.203Z] with self._writelock:
[2024-11-29T22:12:29.203Z] if self.finished:
[2024-11-29T22:12:29.203Z] > raise OSError(f"connection already closed: {self.gateway}")
[2024-11-29T22:12:29.203Z] E OSError: connection already closed: <Gateway id='gw10' not-receiving, thread model, 0 active channels>
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:875: OSError
[2024-11-29T22:12:29.203Z] ----------------------------- Captured stderr call -----------------------------
[2024-11-29T22:12:29.203Z] Traceback (most recent call last):
[2024-11-29T22:12:29.203Z] File "<string>", line 1, in <module>
[2024-11-29T22:12:29.203Z] File "<string>", line 7, in <module>
[2024-11-29T22:12:29.203Z] File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.203Z] raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.203Z] ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.203Z] ________________ TestWorkerInteractor.test_remote_collect_fail _________________
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] self = <test_remote.TestWorkerInteractor object at 0x7a319242ab10>
[2024-11-29T22:12:29.203Z] worker = <test_remote.WorkerSetup object at 0x7a319229e930>
[2024-11-29T22:12:29.203Z] unserialize_report = <function TestWorkerInteractor.unserialize_report.<locals>.unserialize at 0x7a319180d620>
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] def test_remote_collect_fail(
[2024-11-29T22:12:29.203Z] self, worker: WorkerSetup, unserialize_report: UnserializerReport
[2024-11-29T22:12:29.203Z] ) -> None:
[2024-11-29T22:12:29.203Z] worker.pytester.makepyfile("""aasd qwe""")
[2024-11-29T22:12:29.203Z] > worker.setup()
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_remote.py:166:
[2024-11-29T22:12:29.203Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.203Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_remote.py:69: in setup
[2024-11-29T22:12:29.203Z] self.slp.setup()
[2024-11-29T22:12:29.203Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:319: in setup
[2024-11-29T22:12:29.203Z] self.gateway._rinfo()
[2024-11-29T22:12:29.203Z] /usr/lib/python3.12/site-packages/execnet/gateway.py:77: in _rinfo
[2024-11-29T22:12:29.203Z] ch = self.remote_exec(rinfo_source)
[2024-11-29T22:12:29.203Z] /usr/lib/python3.12/site-packages/execnet/gateway.py:130: in remote_exec
[2024-11-29T22:12:29.203Z] channel = self.newchannel()
[2024-11-29T22:12:29.203Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:1097: in newchannel
[2024-11-29T22:12:29.203Z] return self._channelfactory.new()
[2024-11-29T22:12:29.203Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] self = <execnet.gateway_base.ChannelFactory object at 0x7a31937020c0>, id = None
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] def new(self, id=None):
[2024-11-29T22:12:29.203Z] """create a new Channel with 'id' (or create new id if None)."""
[2024-11-29T22:12:29.203Z] with self._writelock:
[2024-11-29T22:12:29.203Z] if self.finished:
[2024-11-29T22:12:29.203Z] > raise OSError(f"connection already closed: {self.gateway}")
[2024-11-29T22:12:29.203Z] E OSError: connection already closed: <Gateway id='gw11' not-receiving, thread model, 0 active channels>
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:875: OSError
[2024-11-29T22:12:29.203Z] ----------------------------- Captured stderr call -----------------------------
[2024-11-29T22:12:29.203Z] Traceback (most recent call last):
[2024-11-29T22:12:29.203Z] File "<string>", line 1, in <module>
[2024-11-29T22:12:29.203Z] File "<string>", line 7, in <module>
[2024-11-29T22:12:29.203Z] File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.203Z] raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.203Z] ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.203Z] ____________________ TestWorkerInteractor.test_runtests_all ____________________
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] self = <test_remote.TestWorkerInteractor object at 0x7a3192123590>
[2024-11-29T22:12:29.203Z] worker = <test_remote.WorkerSetup object at 0x7a31919875f0>
[2024-11-29T22:12:29.203Z] unserialize_report = <function TestWorkerInteractor.unserialize_report.<locals>.unserialize at 0x7a31917bca40>
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] def test_runtests_all(
[2024-11-29T22:12:29.203Z] self, worker: WorkerSetup, unserialize_report: UnserializerReport
[2024-11-29T22:12:29.203Z] ) -> None:
[2024-11-29T22:12:29.203Z] worker.pytester.makepyfile(
[2024-11-29T22:12:29.203Z] """
[2024-11-29T22:12:29.203Z] def test_func(): pass
[2024-11-29T22:12:29.203Z] def test_func2(): pass
[2024-11-29T22:12:29.203Z] """
[2024-11-29T22:12:29.203Z] )
[2024-11-29T22:12:29.203Z] > worker.setup()
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_remote.py:185:
[2024-11-29T22:12:29.203Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.203Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_remote.py:69: in setup
[2024-11-29T22:12:29.203Z] self.slp.setup()
[2024-11-29T22:12:29.203Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:319: in setup
[2024-11-29T22:12:29.203Z] self.gateway._rinfo()
[2024-11-29T22:12:29.203Z] /usr/lib/python3.12/site-packages/execnet/gateway.py:77: in _rinfo
[2024-11-29T22:12:29.203Z] ch = self.remote_exec(rinfo_source)
[2024-11-29T22:12:29.203Z] /usr/lib/python3.12/site-packages/execnet/gateway.py:130: in remote_exec
[2024-11-29T22:12:29.203Z] channel = self.newchannel()
[2024-11-29T22:12:29.203Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:1097: in newchannel
[2024-11-29T22:12:29.203Z] return self._channelfactory.new()
[2024-11-29T22:12:29.203Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] self = <execnet.gateway_base.ChannelFactory object at 0x7a31918a72f0>, id = None
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] def new(self, id=None):
[2024-11-29T22:12:29.203Z] """create a new Channel with 'id' (or create new id if None)."""
[2024-11-29T22:12:29.203Z] with self._writelock:
[2024-11-29T22:12:29.203Z] if self.finished:
[2024-11-29T22:12:29.203Z] > raise OSError(f"connection already closed: {self.gateway}")
[2024-11-29T22:12:29.203Z] E OSError: connection already closed: <Gateway id='gw12' not-receiving, thread model, 0 active channels>
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:875: OSError
[2024-11-29T22:12:29.203Z] ----------------------------- Captured stderr call -----------------------------
[2024-11-29T22:12:29.203Z] Traceback (most recent call last):
[2024-11-29T22:12:29.203Z] File "<string>", line 1, in <module>
[2024-11-29T22:12:29.203Z] File "<string>", line 7, in <module>
[2024-11-29T22:12:29.203Z] File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.203Z] raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.203Z] ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.203Z] _________ TestWorkerInteractor.test_process_from_remote_error_handling _________
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] self = <test_remote.TestWorkerInteractor object at 0x7a31921236b0>
[2024-11-29T22:12:29.203Z] worker = <test_remote.WorkerSetup object at 0x7a3191eac8c0>
[2024-11-29T22:12:29.203Z] capsys = <_pytest.capture.CaptureFixture object at 0x7a3191eaef00>
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] def test_process_from_remote_error_handling(
[2024-11-29T22:12:29.203Z] self, worker: WorkerSetup, capsys: pytest.CaptureFixture[str]
[2024-11-29T22:12:29.203Z] ) -> None:
[2024-11-29T22:12:29.203Z] worker.use_callback = True
[2024-11-29T22:12:29.203Z] > worker.setup()
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_remote.py:237:
[2024-11-29T22:12:29.203Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.203Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_remote.py:69: in setup
[2024-11-29T22:12:29.203Z] self.slp.setup()
[2024-11-29T22:12:29.203Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:319: in setup
[2024-11-29T22:12:29.203Z] self.gateway._rinfo()
[2024-11-29T22:12:29.203Z] /usr/lib/python3.12/site-packages/execnet/gateway.py:77: in _rinfo
[2024-11-29T22:12:29.203Z] ch = self.remote_exec(rinfo_source)
[2024-11-29T22:12:29.203Z] /usr/lib/python3.12/site-packages/execnet/gateway.py:130: in remote_exec
[2024-11-29T22:12:29.203Z] channel = self.newchannel()
[2024-11-29T22:12:29.203Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:1097: in newchannel
[2024-11-29T22:12:29.203Z] return self._channelfactory.new()
[2024-11-29T22:12:29.203Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] self = <execnet.gateway_base.ChannelFactory object at 0x7a3191eac080>, id = None
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] def new(self, id=None):
[2024-11-29T22:12:29.203Z] """create a new Channel with 'id' (or create new id if None)."""
[2024-11-29T22:12:29.203Z] with self._writelock:
[2024-11-29T22:12:29.203Z] if self.finished:
[2024-11-29T22:12:29.203Z] > raise OSError(f"connection already closed: {self.gateway}")
[2024-11-29T22:12:29.203Z] E OSError: connection already closed: <Gateway id='gw13' not-receiving, thread model, 0 active channels>
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:875: OSError
[2024-11-29T22:12:29.203Z] ----------------------------- Captured stderr call -----------------------------
[2024-11-29T22:12:29.203Z] Traceback (most recent call last):
[2024-11-29T22:12:29.203Z] File "<string>", line 1, in <module>
[2024-11-29T22:12:29.203Z] File "<string>", line 7, in <module>
[2024-11-29T22:12:29.203Z] File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.203Z] raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.203Z] ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.203Z] _____________________ TestWorkerInteractor.test_steal_work _____________________
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] self = <test_remote.TestWorkerInteractor object at 0x7a3192123440>
[2024-11-29T22:12:29.203Z] worker = <test_remote.WorkerSetup object at 0x7a319172a1b0>
[2024-11-29T22:12:29.203Z] unserialize_report = <function TestWorkerInteractor.unserialize_report.<locals>.unserialize at 0x7a31917aee80>
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] def test_steal_work(
[2024-11-29T22:12:29.203Z] self, worker: WorkerSetup, unserialize_report: UnserializerReport
[2024-11-29T22:12:29.203Z] ) -> None:
[2024-11-29T22:12:29.203Z] worker.pytester.makepyfile(
[2024-11-29T22:12:29.203Z] """
[2024-11-29T22:12:29.203Z] import time
[2024-11-29T22:12:29.203Z] def test_func(): time.sleep(1)
[2024-11-29T22:12:29.203Z] def test_func2(): pass
[2024-11-29T22:12:29.203Z] def test_func3(): pass
[2024-11-29T22:12:29.203Z] def test_func4(): pass
[2024-11-29T22:12:29.203Z] """
[2024-11-29T22:12:29.203Z] )
[2024-11-29T22:12:29.203Z] > worker.setup()
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_remote.py:256:
[2024-11-29T22:12:29.203Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.203Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_remote.py:69: in setup
[2024-11-29T22:12:29.203Z] self.slp.setup()
[2024-11-29T22:12:29.203Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:319: in setup
[2024-11-29T22:12:29.203Z] self.gateway._rinfo()
[2024-11-29T22:12:29.203Z] /usr/lib/python3.12/site-packages/execnet/gateway.py:77: in _rinfo
[2024-11-29T22:12:29.203Z] ch = self.remote_exec(rinfo_source)
[2024-11-29T22:12:29.203Z] /usr/lib/python3.12/site-packages/execnet/gateway.py:130: in remote_exec
[2024-11-29T22:12:29.203Z] channel = self.newchannel()
[2024-11-29T22:12:29.203Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:1097: in newchannel
[2024-11-29T22:12:29.203Z] return self._channelfactory.new()
[2024-11-29T22:12:29.203Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.203Z] self = <execnet.gateway_base.ChannelFactory object at 0x7a31917292b0>, id = None
[2024-11-29T22:12:29.203Z]
[2024-11-29T22:12:29.204Z] def new(self, id=None):
[2024-11-29T22:12:29.204Z] """create a new Channel with 'id' (or create new id if None)."""
[2024-11-29T22:12:29.204Z] with self._writelock:
[2024-11-29T22:12:29.204Z] if self.finished:
[2024-11-29T22:12:29.204Z] > raise OSError(f"connection already closed: {self.gateway}")
[2024-11-29T22:12:29.204Z] E OSError: connection already closed: <Gateway id='gw14' not-receiving, thread model, 0 active channels>
[2024-11-29T22:12:29.204Z]
[2024-11-29T22:12:29.204Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:875: OSError
[2024-11-29T22:12:29.204Z] ----------------------------- Captured stderr call -----------------------------
[2024-11-29T22:12:29.204Z] Traceback (most recent call last):
[2024-11-29T22:12:29.204Z] File "<string>", line 1, in <module>
[2024-11-29T22:12:29.204Z] File "<string>", line 7, in <module>
[2024-11-29T22:12:29.204Z] File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.204Z] raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.204Z] ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.204Z] _________________ TestWorkerInteractor.test_steal_empty_queue __________________
[2024-11-29T22:12:29.204Z]
[2024-11-29T22:12:29.204Z] self = <test_remote.TestWorkerInteractor object at 0x7a3192123950>
[2024-11-29T22:12:29.204Z] worker = <test_remote.WorkerSetup object at 0x7a3191e2abd0>
[2024-11-29T22:12:29.204Z] unserialize_report = <function TestWorkerInteractor.unserialize_report.<locals>.unserialize at 0x7a31917bfd80>
[2024-11-29T22:12:29.204Z]
[2024-11-29T22:12:29.204Z] def test_steal_empty_queue(
[2024-11-29T22:12:29.204Z] self, worker: WorkerSetup, unserialize_report: UnserializerReport
[2024-11-29T22:12:29.204Z] ) -> None:
[2024-11-29T22:12:29.204Z] worker.pytester.makepyfile(
[2024-11-29T22:12:29.204Z] """
[2024-11-29T22:12:29.204Z] def test_func(): pass
[2024-11-29T22:12:29.204Z] def test_func2(): pass
[2024-11-29T22:12:29.204Z] """
[2024-11-29T22:12:29.204Z] )
[2024-11-29T22:12:29.204Z] > worker.setup()
[2024-11-29T22:12:29.204Z]
[2024-11-29T22:12:29.204Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_remote.py:306:
[2024-11-29T22:12:29.204Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.204Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_remote.py:69: in setup
[2024-11-29T22:12:29.204Z] self.slp.setup()
[2024-11-29T22:12:29.204Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:319: in setup
[2024-11-29T22:12:29.204Z] self.gateway._rinfo()
[2024-11-29T22:12:29.204Z] /usr/lib/python3.12/site-packages/execnet/gateway.py:77: in _rinfo
[2024-11-29T22:12:29.204Z] ch = self.remote_exec(rinfo_source)
[2024-11-29T22:12:29.204Z] /usr/lib/python3.12/site-packages/execnet/gateway.py:130: in remote_exec
[2024-11-29T22:12:29.204Z] channel = self.newchannel()
[2024-11-29T22:12:29.204Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:1097: in newchannel
[2024-11-29T22:12:29.204Z] return self._channelfactory.new()
[2024-11-29T22:12:29.204Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.204Z]
[2024-11-29T22:12:29.204Z] self = <execnet.gateway_base.ChannelFactory object at 0x7a3192c6dd30>, id = None
[2024-11-29T22:12:29.204Z]
[2024-11-29T22:12:29.204Z] def new(self, id=None):
[2024-11-29T22:12:29.204Z] """create a new Channel with 'id' (or create new id if None)."""
[2024-11-29T22:12:29.204Z] with self._writelock:
[2024-11-29T22:12:29.204Z] if self.finished:
[2024-11-29T22:12:29.204Z] > raise OSError(f"connection already closed: {self.gateway}")
[2024-11-29T22:12:29.204Z] E OSError: connection already closed: <Gateway id='gw15' not-receiving, thread model, 0 active channels>
[2024-11-29T22:12:29.204Z]
[2024-11-29T22:12:29.204Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:875: OSError
[2024-11-29T22:12:29.204Z] ----------------------------- Captured stderr call -----------------------------
[2024-11-29T22:12:29.204Z] Traceback (most recent call last):
[2024-11-29T22:12:29.204Z] File "<string>", line 1, in <module>
[2024-11-29T22:12:29.204Z] File "<string>", line 7, in <module>
[2024-11-29T22:12:29.204Z] File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.204Z] raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.204Z] ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.204Z] _____________________________ test_remote_env_vars _____________________________
[2024-11-29T22:12:29.204Z]
[2024-11-29T22:12:29.204Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_remote_env_vars0')>
[2024-11-29T22:12:29.204Z]
[2024-11-29T22:12:29.204Z] def test_remote_env_vars(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.204Z] pytester.makepyfile(
[2024-11-29T22:12:29.204Z] """
[2024-11-29T22:12:29.204Z] import os
[2024-11-29T22:12:29.204Z] def test():
[2024-11-29T22:12:29.204Z] assert len(os.environ['PYTEST_XDIST_TESTRUNUID']) == 32
[2024-11-29T22:12:29.204Z] assert os.environ['PYTEST_XDIST_WORKER'] in ('gw0', 'gw1')
[2024-11-29T22:12:29.204Z] assert os.environ['PYTEST_XDIST_WORKER_COUNT'] == '2'
[2024-11-29T22:12:29.204Z] """
[2024-11-29T22:12:29.204Z] )
[2024-11-29T22:12:29.204Z] result = pytester.runpytest("-n2", "--max-worker-restart=0")
[2024-11-29T22:12:29.204Z] > assert result.ret == 0
[2024-11-29T22:12:29.204Z] E assert <ExitCode.INTERNAL_ERROR: 3> == 0
[2024-11-29T22:12:29.204Z] E + where <ExitCode.INTERNAL_ERROR: 3> = <RunResult ret=3 len(stdout.lines)=49 len(stderr.lines)=0 duration=0.04s>.ret
[2024-11-29T22:12:29.204Z]
[2024-11-29T22:12:29.204Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_remote.py:345: AssertionError
[2024-11-29T22:12:29.204Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.204Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.204Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.204Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_remote_env_vars0
[2024-11-29T22:12:29.204Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.204Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.204Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.204Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.204Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.204Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.204Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.204Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.204Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.204Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.204Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.204Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.204Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.204Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.204Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.204Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.204Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.204Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.204Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.204Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.204Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.204Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.204Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.204Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.204Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.204Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.204Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.204Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.204Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.204Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.204Z] ____________________________ test_remote_inner_argv ____________________________
[2024-11-29T22:12:29.204Z]
[2024-11-29T22:12:29.204Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_remote_inner_argv0')>
[2024-11-29T22:12:29.204Z]
[2024-11-29T22:12:29.204Z] def test_remote_inner_argv(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.204Z] """Test/document the behavior due to execnet using `python -c`."""
[2024-11-29T22:12:29.204Z] pytester.makepyfile(
[2024-11-29T22:12:29.204Z] """
[2024-11-29T22:12:29.204Z] import sys
[2024-11-29T22:12:29.204Z]
[2024-11-29T22:12:29.204Z] def test_argv():
[2024-11-29T22:12:29.204Z] assert sys.argv == ["-c"]
[2024-11-29T22:12:29.204Z] """
[2024-11-29T22:12:29.204Z] )
[2024-11-29T22:12:29.204Z] result = pytester.runpytest("-n1")
[2024-11-29T22:12:29.204Z] > assert result.ret == 0
[2024-11-29T22:12:29.204Z] E assert <ExitCode.INTERNAL_ERROR: 3> == 0
[2024-11-29T22:12:29.204Z] E + where <ExitCode.INTERNAL_ERROR: 3> = <RunResult ret=3 len(stdout.lines)=49 len(stderr.lines)=0 duration=0.04s>.ret
[2024-11-29T22:12:29.204Z]
[2024-11-29T22:12:29.204Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_remote.py:359: AssertionError
[2024-11-29T22:12:29.204Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.204Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.204Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.204Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_remote_inner_argv0
[2024-11-29T22:12:29.204Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.204Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.204Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.204Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.204Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.204Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.204Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.204Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.204Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.204Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.204Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.205Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.205Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.205Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.205Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.205Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.205Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.205Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.205Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.205Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.205Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.205Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.205Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.205Z] _____________________________ test_remote_mainargv _____________________________
[2024-11-29T22:12:29.205Z]
[2024-11-29T22:12:29.205Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_remote_mainargv0')>
[2024-11-29T22:12:29.205Z]
[2024-11-29T22:12:29.205Z] def test_remote_mainargv(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.205Z] outer_argv = sys.argv
[2024-11-29T22:12:29.205Z]
[2024-11-29T22:12:29.205Z] pytester.makepyfile(
[2024-11-29T22:12:29.205Z] f"""
[2024-11-29T22:12:29.205Z] def test_mainargv(request):
[2024-11-29T22:12:29.205Z] assert request.config.workerinput["mainargv"] == {outer_argv!r}
[2024-11-29T22:12:29.205Z] """
[2024-11-29T22:12:29.205Z] )
[2024-11-29T22:12:29.205Z] result = pytester.runpytest("-n1")
[2024-11-29T22:12:29.205Z] > assert result.ret == 0
[2024-11-29T22:12:29.205Z] E assert <ExitCode.INTERNAL_ERROR: 3> == 0
[2024-11-29T22:12:29.205Z] E + where <ExitCode.INTERNAL_ERROR: 3> = <RunResult ret=3 len(stdout.lines)=49 len(stderr.lines)=0 duration=0.04s>.ret
[2024-11-29T22:12:29.205Z]
[2024-11-29T22:12:29.205Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_remote.py:372: AssertionError
[2024-11-29T22:12:29.205Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.205Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.205Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.205Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_remote_mainargv0
[2024-11-29T22:12:29.205Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.205Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.205Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.205Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.205Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.205Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.205Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.205Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.205Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.205Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.205Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.205Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.205Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.205Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.205Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.205Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.205Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.205Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.205Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.205Z] ____________________________ test_remote_usage_prog ____________________________
[2024-11-29T22:12:29.205Z]
[2024-11-29T22:12:29.205Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_remote_usage_prog0')>
[2024-11-29T22:12:29.205Z]
[2024-11-29T22:12:29.205Z] def test_remote_usage_prog(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.205Z] pytester.makeconftest(
[2024-11-29T22:12:29.205Z] """
[2024-11-29T22:12:29.205Z] import pytest
[2024-11-29T22:12:29.205Z]
[2024-11-29T22:12:29.205Z] config_parser = None
[2024-11-29T22:12:29.205Z]
[2024-11-29T22:12:29.205Z] @pytest.fixture
[2024-11-29T22:12:29.205Z] def get_config_parser():
[2024-11-29T22:12:29.205Z] return config_parser
[2024-11-29T22:12:29.205Z]
[2024-11-29T22:12:29.205Z] def pytest_configure(config):
[2024-11-29T22:12:29.205Z] global config_parser
[2024-11-29T22:12:29.205Z] config_parser = config._parser
[2024-11-29T22:12:29.205Z] """
[2024-11-29T22:12:29.205Z] )
[2024-11-29T22:12:29.205Z] pytester.makepyfile(
[2024-11-29T22:12:29.205Z] """
[2024-11-29T22:12:29.205Z] import sys
[2024-11-29T22:12:29.205Z]
[2024-11-29T22:12:29.205Z] def test(get_config_parser, request):
[2024-11-29T22:12:29.205Z] get_config_parser._getparser().error("my_usage_error")
[2024-11-29T22:12:29.205Z] """
[2024-11-29T22:12:29.205Z] )
[2024-11-29T22:12:29.205Z]
[2024-11-29T22:12:29.205Z] result = pytester.runpytest_subprocess("-n1")
[2024-11-29T22:12:29.205Z] > assert result.ret == 1
[2024-11-29T22:12:29.205Z] E assert <ExitCode.INTERNAL_ERROR: 3> == 1
[2024-11-29T22:12:29.205Z] E + where <ExitCode.INTERNAL_ERROR: 3> = <RunResult ret=3 len(stdout.lines)=38 len(stderr.lines)=0 duration=0.30s>.ret
[2024-11-29T22:12:29.205Z]
[2024-11-29T22:12:29.205Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_remote.py:401: AssertionError
[2024-11-29T22:12:29.205Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.205Z] running: /usr/bin/python -mpytest --basetemp=/tmp/pytest-of-builduser/pytest-0/test_remote_usage_prog0/runpytest-0 -n1
[2024-11-29T22:12:29.205Z] in: /tmp/pytest-of-builduser/pytest-0/test_remote_usage_prog0
[2024-11-29T22:12:29.205Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.205Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.205Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_remote_usage_prog0
[2024-11-29T22:12:29.205Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.205Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.205Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.205Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.205Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.205Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.205Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.205Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.205Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.205Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.205Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.205Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.205Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.205Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.205Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.205Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.206Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.206Z] _____________________________ test_remote_sys_path _____________________________
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_remote_sys_path0')>
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] def test_remote_sys_path(pytester: pytest.Pytester) -> None:
[2024-11-29T22:12:29.206Z] """Work around sys.path differences due to execnet using `python -c`."""
[2024-11-29T22:12:29.206Z] pytester.makepyfile(
[2024-11-29T22:12:29.206Z] """
[2024-11-29T22:12:29.206Z] import sys
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] def test_sys_path():
[2024-11-29T22:12:29.206Z] assert "" not in sys.path
[2024-11-29T22:12:29.206Z] """
[2024-11-29T22:12:29.206Z] )
[2024-11-29T22:12:29.206Z] result = pytester.runpytest("-n1")
[2024-11-29T22:12:29.206Z] > assert result.ret == 0
[2024-11-29T22:12:29.206Z] E assert <ExitCode.INTERNAL_ERROR: 3> == 0
[2024-11-29T22:12:29.206Z] E + where <ExitCode.INTERNAL_ERROR: 3> = <RunResult ret=3 len(stdout.lines)=49 len(stderr.lines)=0 duration=0.04s>.ret
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_remote.py:416: AssertionError
[2024-11-29T22:12:29.206Z] ----------------------------- Captured stdout call -----------------------------
[2024-11-29T22:12:29.206Z] ============================= test session starts ==============================
[2024-11-29T22:12:29.206Z] platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
[2024-11-29T22:12:29.206Z] rootdir: /tmp/pytest-of-builduser/pytest-0/test_remote_sys_path0
[2024-11-29T22:12:29.206Z] plugins: xdist-3.6.1
[2024-11-29T22:12:29.206Z] INTERNALERROR> Traceback (most recent call last):
[2024-11-29T22:12:29.206Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 281, in wrap_session
[2024-11-29T22:12:29.206Z] INTERNALERROR> config.hook.pytest_sessionstart(session=session)
[2024-11-29T22:12:29.206Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
[2024-11-29T22:12:29.206Z] INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
[2024-11-29T22:12:29.206Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.206Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
[2024-11-29T22:12:29.206Z] INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[2024-11-29T22:12:29.206Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.206Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 480, in traced_hookexec
[2024-11-29T22:12:29.206Z] INTERNALERROR> return outcome.get_result()
[2024-11-29T22:12:29.206Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.206Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
[2024-11-29T22:12:29.206Z] INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
[2024-11-29T22:12:29.206Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_result.py", line 62, in from_call
[2024-11-29T22:12:29.206Z] INTERNALERROR> result = func()
[2024-11-29T22:12:29.206Z] INTERNALERROR> ^^^^^^
[2024-11-29T22:12:29.206Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 477, in <lambda>
[2024-11-29T22:12:29.206Z] INTERNALERROR> lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
[2024-11-29T22:12:29.206Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.206Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
[2024-11-29T22:12:29.206Z] INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
[2024-11-29T22:12:29.206Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
[2024-11-29T22:12:29.206Z] INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
[2024-11-29T22:12:29.206Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.206Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/_pytest/logging.py", line 782, in pytest_sessionstart
[2024-11-29T22:12:29.206Z] INTERNALERROR> return (yield)
[2024-11-29T22:12:29.206Z] INTERNALERROR> ^^^^^
[2024-11-29T22:12:29.206Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
[2024-11-29T22:12:29.206Z] INTERNALERROR> res = hook_impl.function(*args)
[2024-11-29T22:12:29.206Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.206Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/dsession.py", line 89, in pytest_sessionstart
[2024-11-29T22:12:29.206Z] INTERNALERROR> self.nodemanager = NodeManager(self.config)
[2024-11-29T22:12:29.206Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.206Z] INTERNALERROR> File "/build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py", line 59, in __init__
[2024-11-29T22:12:29.206Z] INTERNALERROR> self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.206Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.206Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 39, in __init__
[2024-11-29T22:12:29.206Z] INTERNALERROR> self.set_execmodel(execmodel)
[2024-11-29T22:12:29.206Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/multi.py", line 69, in set_execmodel
[2024-11-29T22:12:29.206Z] INTERNALERROR> self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.206Z] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^
[2024-11-29T22:12:29.206Z] INTERNALERROR> File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.206Z] INTERNALERROR> raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.206Z] INTERNALERROR> ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.206Z] _______________ TestNodeManagerPopen.test_popen_no_default_chdir _______________
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] self = <test_workermanage.TestNodeManagerPopen object at 0x7a31923ff1d0>
[2024-11-29T22:12:29.206Z] config = <_pytest.config.Config object at 0x7a3191b8e600>
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] def test_popen_no_default_chdir(self, config: pytest.Config) -> None:
[2024-11-29T22:12:29.206Z] > gm = NodeManager(config, ["popen"])
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_workermanage.py:64:
[2024-11-29T22:12:29.206Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.206Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:59: in __init__
[2024-11-29T22:12:29.206Z] self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.206Z] /usr/lib/python3.12/site-packages/execnet/multi.py:39: in __init__
[2024-11-29T22:12:29.206Z] self.set_execmodel(execmodel)
[2024-11-29T22:12:29.206Z] /usr/lib/python3.12/site-packages/execnet/multi.py:69: in set_execmodel
[2024-11-29T22:12:29.206Z] self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.206Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] backend = 'main_thread_only'
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] def get_execmodel(backend):
[2024-11-29T22:12:29.206Z] if hasattr(backend, "backend"):
[2024-11-29T22:12:29.206Z] return backend
[2024-11-29T22:12:29.206Z] if backend == "thread":
[2024-11-29T22:12:29.206Z] return ThreadExecModel()
[2024-11-29T22:12:29.206Z] elif backend == "eventlet":
[2024-11-29T22:12:29.206Z] return EventletExecModel()
[2024-11-29T22:12:29.206Z] elif backend == "gevent":
[2024-11-29T22:12:29.206Z] return GeventExecModel()
[2024-11-29T22:12:29.206Z] else:
[2024-11-29T22:12:29.206Z] > raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.206Z] E ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:262: ValueError
[2024-11-29T22:12:29.206Z] ___________________ TestNodeManagerPopen.test_default_chdir ____________________
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] self = <test_workermanage.TestNodeManagerPopen object at 0x7a31923fe900>
[2024-11-29T22:12:29.206Z] config = <_pytest.config.Config object at 0x7a3193cdf680>
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] def test_default_chdir(self, config: pytest.Config) -> None:
[2024-11-29T22:12:29.206Z] specs = ["ssh=noco", "socket=xyz"]
[2024-11-29T22:12:29.206Z] > for spec in NodeManager(config, specs).specs:
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_workermanage.py:69:
[2024-11-29T22:12:29.206Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.206Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:59: in __init__
[2024-11-29T22:12:29.206Z] self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.206Z] /usr/lib/python3.12/site-packages/execnet/multi.py:39: in __init__
[2024-11-29T22:12:29.206Z] self.set_execmodel(execmodel)
[2024-11-29T22:12:29.206Z] /usr/lib/python3.12/site-packages/execnet/multi.py:69: in set_execmodel
[2024-11-29T22:12:29.206Z] self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.206Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] backend = 'main_thread_only'
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] def get_execmodel(backend):
[2024-11-29T22:12:29.206Z] if hasattr(backend, "backend"):
[2024-11-29T22:12:29.206Z] return backend
[2024-11-29T22:12:29.206Z] if backend == "thread":
[2024-11-29T22:12:29.206Z] return ThreadExecModel()
[2024-11-29T22:12:29.206Z] elif backend == "eventlet":
[2024-11-29T22:12:29.206Z] return EventletExecModel()
[2024-11-29T22:12:29.206Z] elif backend == "gevent":
[2024-11-29T22:12:29.206Z] return GeventExecModel()
[2024-11-29T22:12:29.206Z] else:
[2024-11-29T22:12:29.206Z] > raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.206Z] E ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:262: ValueError
[2024-11-29T22:12:29.206Z] ______________ TestNodeManagerPopen.test_popen_makegateway_events ______________
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] self = <test_workermanage.TestNodeManagerPopen object at 0x7a31923febd0>
[2024-11-29T22:12:29.206Z] config = <_pytest.config.Config object at 0x7a319194a0f0>
[2024-11-29T22:12:29.206Z] hookrecorder = <_pytest.pytester.HookRecorder object at 0x7a3191e40410>
[2024-11-29T22:12:29.206Z] workercontroller = None
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] def test_popen_makegateway_events(
[2024-11-29T22:12:29.206Z] self,
[2024-11-29T22:12:29.206Z] config: pytest.Config,
[2024-11-29T22:12:29.206Z] hookrecorder: pytest.HookRecorder,
[2024-11-29T22:12:29.206Z] workercontroller: None,
[2024-11-29T22:12:29.206Z] ) -> None:
[2024-11-29T22:12:29.206Z] > hm = NodeManager(config, ["popen"] * 2)
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_workermanage.py:80:
[2024-11-29T22:12:29.206Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.206Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:59: in __init__
[2024-11-29T22:12:29.206Z] self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.206Z] /usr/lib/python3.12/site-packages/execnet/multi.py:39: in __init__
[2024-11-29T22:12:29.206Z] self.set_execmodel(execmodel)
[2024-11-29T22:12:29.206Z] /usr/lib/python3.12/site-packages/execnet/multi.py:69: in set_execmodel
[2024-11-29T22:12:29.206Z] self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.206Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] backend = 'main_thread_only'
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] def get_execmodel(backend):
[2024-11-29T22:12:29.206Z] if hasattr(backend, "backend"):
[2024-11-29T22:12:29.206Z] return backend
[2024-11-29T22:12:29.206Z] if backend == "thread":
[2024-11-29T22:12:29.206Z] return ThreadExecModel()
[2024-11-29T22:12:29.206Z] elif backend == "eventlet":
[2024-11-29T22:12:29.206Z] return EventletExecModel()
[2024-11-29T22:12:29.206Z] elif backend == "gevent":
[2024-11-29T22:12:29.206Z] return GeventExecModel()
[2024-11-29T22:12:29.206Z] else:
[2024-11-29T22:12:29.206Z] > raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.206Z] E ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:262: ValueError
[2024-11-29T22:12:29.206Z] ____________________ TestNodeManagerPopen.test_popens_rsync ____________________
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] self = <test_workermanage.TestNodeManagerPopen object at 0x7a31923fff50>
[2024-11-29T22:12:29.206Z] config = <_pytest.config.Config object at 0x7a31918a5340>
[2024-11-29T22:12:29.206Z] source = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_popens_rsync1/source')
[2024-11-29T22:12:29.206Z] dest = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_popens_rsync1/dest')
[2024-11-29T22:12:29.206Z] workercontroller = None
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] def test_popens_rsync(
[2024-11-29T22:12:29.206Z] self,
[2024-11-29T22:12:29.206Z] config: pytest.Config,
[2024-11-29T22:12:29.206Z] source: Path,
[2024-11-29T22:12:29.206Z] dest: Path,
[2024-11-29T22:12:29.206Z] workercontroller: None,
[2024-11-29T22:12:29.206Z] ) -> None:
[2024-11-29T22:12:29.206Z] > hm = NodeManager(config, ["popen"] * 2)
[2024-11-29T22:12:29.206Z]
[2024-11-29T22:12:29.206Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_workermanage.py:101:
[2024-11-29T22:12:29.206Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.206Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:59: in __init__
[2024-11-29T22:12:29.206Z] self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.206Z] /usr/lib/python3.12/site-packages/execnet/multi.py:39: in __init__
[2024-11-29T22:12:29.207Z] self.set_execmodel(execmodel)
[2024-11-29T22:12:29.207Z] /usr/lib/python3.12/site-packages/execnet/multi.py:69: in set_execmodel
[2024-11-29T22:12:29.207Z] self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.207Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] backend = 'main_thread_only'
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] def get_execmodel(backend):
[2024-11-29T22:12:29.207Z] if hasattr(backend, "backend"):
[2024-11-29T22:12:29.207Z] return backend
[2024-11-29T22:12:29.207Z] if backend == "thread":
[2024-11-29T22:12:29.207Z] return ThreadExecModel()
[2024-11-29T22:12:29.207Z] elif backend == "eventlet":
[2024-11-29T22:12:29.207Z] return EventletExecModel()
[2024-11-29T22:12:29.207Z] elif backend == "gevent":
[2024-11-29T22:12:29.207Z] return GeventExecModel()
[2024-11-29T22:12:29.207Z] else:
[2024-11-29T22:12:29.207Z] > raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.207Z] E ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:262: ValueError
[2024-11-29T22:12:29.207Z] _______________ TestNodeManagerPopen.test_rsync_popen_with_path ________________
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] self = <test_workermanage.TestNodeManagerPopen object at 0x7a31923fe480>
[2024-11-29T22:12:29.207Z] config = <_pytest.config.Config object at 0x7a3191a5cef0>
[2024-11-29T22:12:29.207Z] source = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_rsync_popen_with_path1/source')
[2024-11-29T22:12:29.207Z] dest = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_rsync_popen_with_path1/dest')
[2024-11-29T22:12:29.207Z] workercontroller = None
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] def test_rsync_popen_with_path(
[2024-11-29T22:12:29.207Z] self, config: pytest.Config, source: Path, dest: Path, workercontroller: None
[2024-11-29T22:12:29.207Z] ) -> None:
[2024-11-29T22:12:29.207Z] > hm = NodeManager(config, ["popen//chdir=%s" % dest] * 1)
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_workermanage.py:127:
[2024-11-29T22:12:29.207Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.207Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:59: in __init__
[2024-11-29T22:12:29.207Z] self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.207Z] /usr/lib/python3.12/site-packages/execnet/multi.py:39: in __init__
[2024-11-29T22:12:29.207Z] self.set_execmodel(execmodel)
[2024-11-29T22:12:29.207Z] /usr/lib/python3.12/site-packages/execnet/multi.py:69: in set_execmodel
[2024-11-29T22:12:29.207Z] self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.207Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] backend = 'main_thread_only'
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] def get_execmodel(backend):
[2024-11-29T22:12:29.207Z] if hasattr(backend, "backend"):
[2024-11-29T22:12:29.207Z] return backend
[2024-11-29T22:12:29.207Z] if backend == "thread":
[2024-11-29T22:12:29.207Z] return ThreadExecModel()
[2024-11-29T22:12:29.207Z] elif backend == "eventlet":
[2024-11-29T22:12:29.207Z] return EventletExecModel()
[2024-11-29T22:12:29.207Z] elif backend == "gevent":
[2024-11-29T22:12:29.207Z] return GeventExecModel()
[2024-11-29T22:12:29.207Z] else:
[2024-11-29T22:12:29.207Z] > raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.207Z] E ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:262: ValueError
[2024-11-29T22:12:29.207Z] _______________ TestNodeManagerPopen.test_rsync_same_popen_twice _______________
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] self = <test_workermanage.TestNodeManagerPopen object at 0x7a3192123680>
[2024-11-29T22:12:29.207Z] config = <_pytest.config.Config object at 0x7a3192281b80>
[2024-11-29T22:12:29.207Z] source = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_rsync_same_popen_twice1/source')
[2024-11-29T22:12:29.207Z] dest = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_rsync_same_popen_twice1/dest')
[2024-11-29T22:12:29.207Z] hookrecorder = <_pytest.pytester.HookRecorder object at 0x7a3192281700>
[2024-11-29T22:12:29.207Z] workercontroller = None
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] def test_rsync_same_popen_twice(
[2024-11-29T22:12:29.207Z] self,
[2024-11-29T22:12:29.207Z] config: pytest.Config,
[2024-11-29T22:12:29.207Z] source: Path,
[2024-11-29T22:12:29.207Z] dest: Path,
[2024-11-29T22:12:29.207Z] hookrecorder: pytest.HookRecorder,
[2024-11-29T22:12:29.207Z] workercontroller: None,
[2024-11-29T22:12:29.207Z] ) -> None:
[2024-11-29T22:12:29.207Z] > hm = NodeManager(config, ["popen//chdir=%s" % dest] * 2)
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_workermanage.py:150:
[2024-11-29T22:12:29.207Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.207Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:59: in __init__
[2024-11-29T22:12:29.207Z] self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.207Z] /usr/lib/python3.12/site-packages/execnet/multi.py:39: in __init__
[2024-11-29T22:12:29.207Z] self.set_execmodel(execmodel)
[2024-11-29T22:12:29.207Z] /usr/lib/python3.12/site-packages/execnet/multi.py:69: in set_execmodel
[2024-11-29T22:12:29.207Z] self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.207Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] backend = 'main_thread_only'
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] def get_execmodel(backend):
[2024-11-29T22:12:29.207Z] if hasattr(backend, "backend"):
[2024-11-29T22:12:29.207Z] return backend
[2024-11-29T22:12:29.207Z] if backend == "thread":
[2024-11-29T22:12:29.207Z] return ThreadExecModel()
[2024-11-29T22:12:29.207Z] elif backend == "eventlet":
[2024-11-29T22:12:29.207Z] return EventletExecModel()
[2024-11-29T22:12:29.207Z] elif backend == "gevent":
[2024-11-29T22:12:29.207Z] return GeventExecModel()
[2024-11-29T22:12:29.207Z] else:
[2024-11-29T22:12:29.207Z] > raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.207Z] E ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:262: ValueError
[2024-11-29T22:12:29.207Z] _______________________ TestHRSync.test_hrsync_one_host ________________________
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] io = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191c479b0>
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] @staticmethod
[2024-11-29T22:12:29.207Z] def from_io(io):
[2024-11-29T22:12:29.207Z] try:
[2024-11-29T22:12:29.207Z] > header = io.read(9) # type 1, channel 4, payload 4
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:507:
[2024-11-29T22:12:29.207Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] self = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191c479b0>
[2024-11-29T22:12:29.207Z] numbytes = 9
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] def read(self, numbytes):
[2024-11-29T22:12:29.207Z] """Read exactly 'numbytes' bytes from the pipe."""
[2024-11-29T22:12:29.207Z] # a file in non-blocking mode may return less bytes, so we loop
[2024-11-29T22:12:29.207Z] buf = b""
[2024-11-29T22:12:29.207Z] while numbytes > len(buf):
[2024-11-29T22:12:29.207Z] data = self._read(numbytes - len(buf))
[2024-11-29T22:12:29.207Z] if not data:
[2024-11-29T22:12:29.207Z] > raise EOFError("expected %d bytes, got %d" % (numbytes, len(buf)))
[2024-11-29T22:12:29.207Z] E EOFError: expected 9 bytes, got 0
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:476: EOFError
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] During handling of the above exception, another exception occurred:
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] self = <test_workermanage.TestHRSync object at 0x7a319210c620>
[2024-11-29T22:12:29.207Z] source = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_hrsync_one_host0/source')
[2024-11-29T22:12:29.207Z] dest = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_hrsync_one_host0/dest')
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] def test_hrsync_one_host(self, source: Path, dest: Path) -> None:
[2024-11-29T22:12:29.207Z] > gw = execnet.makegateway("execmodel=main_thread_only//popen//chdir=%s" % dest)
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] testing/test_workermanage.py:180:
[2024-11-29T22:12:29.207Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.207Z] /usr/lib/python3.12/site-packages/execnet/multi.py:161: in makegateway
[2024-11-29T22:12:29.207Z] channel.waitclose()
[2024-11-29T22:12:29.207Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:800: in waitclose
[2024-11-29T22:12:29.207Z] raise error
[2024-11-29T22:12:29.207Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:1049: in _thread_receiver
[2024-11-29T22:12:29.207Z] msg = Message.from_io(io)
[2024-11-29T22:12:29.207Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] io = <execnet.gateway_io.Popen2IOMaster object at 0x7a3191c479b0>
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] @staticmethod
[2024-11-29T22:12:29.207Z] def from_io(io):
[2024-11-29T22:12:29.207Z] try:
[2024-11-29T22:12:29.207Z] header = io.read(9) # type 1, channel 4, payload 4
[2024-11-29T22:12:29.207Z] if not header:
[2024-11-29T22:12:29.207Z] raise EOFError("empty read")
[2024-11-29T22:12:29.207Z] except EOFError:
[2024-11-29T22:12:29.207Z] e = sys.exc_info()[1]
[2024-11-29T22:12:29.207Z] > raise EOFError("couldn't load message header, " + e.args[0])
[2024-11-29T22:12:29.207Z] E EOFError: couldn't load message header, expected 9 bytes, got 0
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:512: EOFError
[2024-11-29T22:12:29.207Z] ----------------------------- Captured stderr call -----------------------------
[2024-11-29T22:12:29.207Z] Traceback (most recent call last):
[2024-11-29T22:12:29.207Z] File "<string>", line 1, in <module>
[2024-11-29T22:12:29.207Z] File "<string>", line 7, in <module>
[2024-11-29T22:12:29.207Z] File "/usr/lib/python3.12/site-packages/execnet/gateway_base.py", line 262, in get_execmodel
[2024-11-29T22:12:29.207Z] raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.207Z] ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.207Z] ___________________ TestNodeManager.test_popen_rsync_subdir ____________________
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] self = <test_workermanage.TestNodeManager object at 0x7a31923082c0>
[2024-11-29T22:12:29.207Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_popen_rsync_subdir0')>
[2024-11-29T22:12:29.207Z] source = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_popen_rsync_subdir1/source')
[2024-11-29T22:12:29.207Z] dest = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_popen_rsync_subdir1/dest')
[2024-11-29T22:12:29.207Z] workercontroller = None
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] def test_popen_rsync_subdir(
[2024-11-29T22:12:29.207Z] self,
[2024-11-29T22:12:29.207Z] pytester: pytest.Pytester,
[2024-11-29T22:12:29.207Z] source: Path,
[2024-11-29T22:12:29.207Z] dest: Path,
[2024-11-29T22:12:29.207Z] workercontroller: None,
[2024-11-29T22:12:29.207Z] ) -> None:
[2024-11-29T22:12:29.207Z] dir1 = source / "dir1"
[2024-11-29T22:12:29.207Z] dir1.mkdir()
[2024-11-29T22:12:29.207Z] dir2 = dir1 / "dir2"
[2024-11-29T22:12:29.207Z] dir2.mkdir()
[2024-11-29T22:12:29.207Z] dir2.joinpath("hello").touch()
[2024-11-29T22:12:29.207Z] for rsyncroot in (dir1, source):
[2024-11-29T22:12:29.207Z] shutil.rmtree(str(dest), ignore_errors=True)
[2024-11-29T22:12:29.207Z] > nodemanager = NodeManager(
[2024-11-29T22:12:29.207Z] pytester.parseconfig(
[2024-11-29T22:12:29.207Z] "--tx", "popen//chdir=%s" % dest, "--rsyncdir", rsyncroot, source
[2024-11-29T22:12:29.207Z] )
[2024-11-29T22:12:29.207Z] )
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_workermanage.py:226:
[2024-11-29T22:12:29.207Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.207Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:59: in __init__
[2024-11-29T22:12:29.207Z] self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.207Z] /usr/lib/python3.12/site-packages/execnet/multi.py:39: in __init__
[2024-11-29T22:12:29.207Z] self.set_execmodel(execmodel)
[2024-11-29T22:12:29.207Z] /usr/lib/python3.12/site-packages/execnet/multi.py:69: in set_execmodel
[2024-11-29T22:12:29.207Z] self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.207Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] backend = 'main_thread_only'
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] def get_execmodel(backend):
[2024-11-29T22:12:29.207Z] if hasattr(backend, "backend"):
[2024-11-29T22:12:29.207Z] return backend
[2024-11-29T22:12:29.207Z] if backend == "thread":
[2024-11-29T22:12:29.207Z] return ThreadExecModel()
[2024-11-29T22:12:29.207Z] elif backend == "eventlet":
[2024-11-29T22:12:29.207Z] return EventletExecModel()
[2024-11-29T22:12:29.207Z] elif backend == "gevent":
[2024-11-29T22:12:29.207Z] return GeventExecModel()
[2024-11-29T22:12:29.207Z] else:
[2024-11-29T22:12:29.207Z] > raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.207Z] E ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.207Z]
[2024-11-29T22:12:29.207Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:262: ValueError
[2024-11-29T22:12:29.208Z] _________________ TestNodeManager.test_rsync_report[-q-False] __________________
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] self = <test_workermanage.TestNodeManager object at 0x7a3192308530>
[2024-11-29T22:12:29.208Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_rsync_report0')>
[2024-11-29T22:12:29.208Z] source = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_rsync_report__q_False_0/source')
[2024-11-29T22:12:29.208Z] dest = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_rsync_report__q_False_0/dest')
[2024-11-29T22:12:29.208Z] workercontroller = None
[2024-11-29T22:12:29.208Z] capsys = <_pytest.capture.CaptureFixture object at 0x7a3191c562a0>, flag = '-q'
[2024-11-29T22:12:29.208Z] expects_report = False
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] @pytest.mark.parametrize(
[2024-11-29T22:12:29.208Z] ["flag", "expects_report"],
[2024-11-29T22:12:29.208Z] [
[2024-11-29T22:12:29.208Z] ("-q", False),
[2024-11-29T22:12:29.208Z] ("", False),
[2024-11-29T22:12:29.208Z] ("-v", True),
[2024-11-29T22:12:29.208Z] ],
[2024-11-29T22:12:29.208Z] )
[2024-11-29T22:12:29.208Z] def test_rsync_report(
[2024-11-29T22:12:29.208Z] self,
[2024-11-29T22:12:29.208Z] pytester: pytest.Pytester,
[2024-11-29T22:12:29.208Z] source: Path,
[2024-11-29T22:12:29.208Z] dest: Path,
[2024-11-29T22:12:29.208Z] workercontroller: None,
[2024-11-29T22:12:29.208Z] capsys: pytest.CaptureFixture[str],
[2024-11-29T22:12:29.208Z] flag: str,
[2024-11-29T22:12:29.208Z] expects_report: bool,
[2024-11-29T22:12:29.208Z] ) -> None:
[2024-11-29T22:12:29.208Z] dir1 = source / "dir1"
[2024-11-29T22:12:29.208Z] dir1.mkdir()
[2024-11-29T22:12:29.208Z] args = ["--tx", "popen//chdir=%s" % dest, "--rsyncdir", str(dir1), str(source)]
[2024-11-29T22:12:29.208Z] if flag:
[2024-11-29T22:12:29.208Z] args.append(flag)
[2024-11-29T22:12:29.208Z] > nodemanager = NodeManager(pytester.parseconfig(*args))
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_workermanage.py:263:
[2024-11-29T22:12:29.208Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.208Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:59: in __init__
[2024-11-29T22:12:29.208Z] self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.208Z] /usr/lib/python3.12/site-packages/execnet/multi.py:39: in __init__
[2024-11-29T22:12:29.208Z] self.set_execmodel(execmodel)
[2024-11-29T22:12:29.208Z] /usr/lib/python3.12/site-packages/execnet/multi.py:69: in set_execmodel
[2024-11-29T22:12:29.208Z] self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.208Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] backend = 'main_thread_only'
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] def get_execmodel(backend):
[2024-11-29T22:12:29.208Z] if hasattr(backend, "backend"):
[2024-11-29T22:12:29.208Z] return backend
[2024-11-29T22:12:29.208Z] if backend == "thread":
[2024-11-29T22:12:29.208Z] return ThreadExecModel()
[2024-11-29T22:12:29.208Z] elif backend == "eventlet":
[2024-11-29T22:12:29.208Z] return EventletExecModel()
[2024-11-29T22:12:29.208Z] elif backend == "gevent":
[2024-11-29T22:12:29.208Z] return GeventExecModel()
[2024-11-29T22:12:29.208Z] else:
[2024-11-29T22:12:29.208Z] > raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.208Z] E ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:262: ValueError
[2024-11-29T22:12:29.208Z] __________________ TestNodeManager.test_rsync_report[-False] ___________________
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] self = <test_workermanage.TestNodeManager object at 0x7a3192308950>
[2024-11-29T22:12:29.208Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_rsync_report1')>
[2024-11-29T22:12:29.208Z] source = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_rsync_report__False_0/source')
[2024-11-29T22:12:29.208Z] dest = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_rsync_report__False_0/dest')
[2024-11-29T22:12:29.208Z] workercontroller = None
[2024-11-29T22:12:29.208Z] capsys = <_pytest.capture.CaptureFixture object at 0x7a319244c1d0>, flag = ''
[2024-11-29T22:12:29.208Z] expects_report = False
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] @pytest.mark.parametrize(
[2024-11-29T22:12:29.208Z] ["flag", "expects_report"],
[2024-11-29T22:12:29.208Z] [
[2024-11-29T22:12:29.208Z] ("-q", False),
[2024-11-29T22:12:29.208Z] ("", False),
[2024-11-29T22:12:29.208Z] ("-v", True),
[2024-11-29T22:12:29.208Z] ],
[2024-11-29T22:12:29.208Z] )
[2024-11-29T22:12:29.208Z] def test_rsync_report(
[2024-11-29T22:12:29.208Z] self,
[2024-11-29T22:12:29.208Z] pytester: pytest.Pytester,
[2024-11-29T22:12:29.208Z] source: Path,
[2024-11-29T22:12:29.208Z] dest: Path,
[2024-11-29T22:12:29.208Z] workercontroller: None,
[2024-11-29T22:12:29.208Z] capsys: pytest.CaptureFixture[str],
[2024-11-29T22:12:29.208Z] flag: str,
[2024-11-29T22:12:29.208Z] expects_report: bool,
[2024-11-29T22:12:29.208Z] ) -> None:
[2024-11-29T22:12:29.208Z] dir1 = source / "dir1"
[2024-11-29T22:12:29.208Z] dir1.mkdir()
[2024-11-29T22:12:29.208Z] args = ["--tx", "popen//chdir=%s" % dest, "--rsyncdir", str(dir1), str(source)]
[2024-11-29T22:12:29.208Z] if flag:
[2024-11-29T22:12:29.208Z] args.append(flag)
[2024-11-29T22:12:29.208Z] > nodemanager = NodeManager(pytester.parseconfig(*args))
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_workermanage.py:263:
[2024-11-29T22:12:29.208Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.208Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:59: in __init__
[2024-11-29T22:12:29.208Z] self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.208Z] /usr/lib/python3.12/site-packages/execnet/multi.py:39: in __init__
[2024-11-29T22:12:29.208Z] self.set_execmodel(execmodel)
[2024-11-29T22:12:29.208Z] /usr/lib/python3.12/site-packages/execnet/multi.py:69: in set_execmodel
[2024-11-29T22:12:29.208Z] self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.208Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] backend = 'main_thread_only'
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] def get_execmodel(backend):
[2024-11-29T22:12:29.208Z] if hasattr(backend, "backend"):
[2024-11-29T22:12:29.208Z] return backend
[2024-11-29T22:12:29.208Z] if backend == "thread":
[2024-11-29T22:12:29.208Z] return ThreadExecModel()
[2024-11-29T22:12:29.208Z] elif backend == "eventlet":
[2024-11-29T22:12:29.208Z] return EventletExecModel()
[2024-11-29T22:12:29.208Z] elif backend == "gevent":
[2024-11-29T22:12:29.208Z] return GeventExecModel()
[2024-11-29T22:12:29.208Z] else:
[2024-11-29T22:12:29.208Z] > raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.208Z] E ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:262: ValueError
[2024-11-29T22:12:29.208Z] __________________ TestNodeManager.test_rsync_report[-v-True] __________________
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] self = <test_workermanage.TestNodeManager object at 0x7a31923089e0>
[2024-11-29T22:12:29.208Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_rsync_report2')>
[2024-11-29T22:12:29.208Z] source = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_rsync_report__v_True_0/source')
[2024-11-29T22:12:29.208Z] dest = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_rsync_report__v_True_0/dest')
[2024-11-29T22:12:29.208Z] workercontroller = None
[2024-11-29T22:12:29.208Z] capsys = <_pytest.capture.CaptureFixture object at 0x7a319244e090>, flag = '-v'
[2024-11-29T22:12:29.208Z] expects_report = True
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] @pytest.mark.parametrize(
[2024-11-29T22:12:29.208Z] ["flag", "expects_report"],
[2024-11-29T22:12:29.208Z] [
[2024-11-29T22:12:29.208Z] ("-q", False),
[2024-11-29T22:12:29.208Z] ("", False),
[2024-11-29T22:12:29.208Z] ("-v", True),
[2024-11-29T22:12:29.208Z] ],
[2024-11-29T22:12:29.208Z] )
[2024-11-29T22:12:29.208Z] def test_rsync_report(
[2024-11-29T22:12:29.208Z] self,
[2024-11-29T22:12:29.208Z] pytester: pytest.Pytester,
[2024-11-29T22:12:29.208Z] source: Path,
[2024-11-29T22:12:29.208Z] dest: Path,
[2024-11-29T22:12:29.208Z] workercontroller: None,
[2024-11-29T22:12:29.208Z] capsys: pytest.CaptureFixture[str],
[2024-11-29T22:12:29.208Z] flag: str,
[2024-11-29T22:12:29.208Z] expects_report: bool,
[2024-11-29T22:12:29.208Z] ) -> None:
[2024-11-29T22:12:29.208Z] dir1 = source / "dir1"
[2024-11-29T22:12:29.208Z] dir1.mkdir()
[2024-11-29T22:12:29.208Z] args = ["--tx", "popen//chdir=%s" % dest, "--rsyncdir", str(dir1), str(source)]
[2024-11-29T22:12:29.208Z] if flag:
[2024-11-29T22:12:29.208Z] args.append(flag)
[2024-11-29T22:12:29.208Z] > nodemanager = NodeManager(pytester.parseconfig(*args))
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_workermanage.py:263:
[2024-11-29T22:12:29.208Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.208Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:59: in __init__
[2024-11-29T22:12:29.208Z] self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.208Z] /usr/lib/python3.12/site-packages/execnet/multi.py:39: in __init__
[2024-11-29T22:12:29.208Z] self.set_execmodel(execmodel)
[2024-11-29T22:12:29.208Z] /usr/lib/python3.12/site-packages/execnet/multi.py:69: in set_execmodel
[2024-11-29T22:12:29.208Z] self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.208Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] backend = 'main_thread_only'
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] def get_execmodel(backend):
[2024-11-29T22:12:29.208Z] if hasattr(backend, "backend"):
[2024-11-29T22:12:29.208Z] return backend
[2024-11-29T22:12:29.208Z] if backend == "thread":
[2024-11-29T22:12:29.208Z] return ThreadExecModel()
[2024-11-29T22:12:29.208Z] elif backend == "eventlet":
[2024-11-29T22:12:29.208Z] return EventletExecModel()
[2024-11-29T22:12:29.208Z] elif backend == "gevent":
[2024-11-29T22:12:29.208Z] return GeventExecModel()
[2024-11-29T22:12:29.208Z] else:
[2024-11-29T22:12:29.208Z] > raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.208Z] E ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:262: ValueError
[2024-11-29T22:12:29.208Z] ____________________ TestNodeManager.test_init_rsync_roots _____________________
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] self = <test_workermanage.TestNodeManager object at 0x7a3192308110>
[2024-11-29T22:12:29.208Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_init_rsync_roots0')>
[2024-11-29T22:12:29.208Z] source = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_init_rsync_roots1/source')
[2024-11-29T22:12:29.208Z] dest = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_init_rsync_roots1/dest')
[2024-11-29T22:12:29.208Z] workercontroller = None
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] def test_init_rsync_roots(
[2024-11-29T22:12:29.208Z] self,
[2024-11-29T22:12:29.208Z] pytester: pytest.Pytester,
[2024-11-29T22:12:29.208Z] source: Path,
[2024-11-29T22:12:29.208Z] dest: Path,
[2024-11-29T22:12:29.208Z] workercontroller: None,
[2024-11-29T22:12:29.208Z] ) -> None:
[2024-11-29T22:12:29.208Z] dir2 = source.joinpath("dir1", "dir2")
[2024-11-29T22:12:29.208Z] dir2.mkdir(parents=True)
[2024-11-29T22:12:29.208Z] source.joinpath("dir1", "somefile").mkdir()
[2024-11-29T22:12:29.208Z] dir2.joinpath("hello").touch()
[2024-11-29T22:12:29.208Z] source.joinpath("bogusdir").mkdir()
[2024-11-29T22:12:29.208Z] source.joinpath("bogusdir", "file").touch()
[2024-11-29T22:12:29.208Z] source.joinpath("tox.ini").write_text(
[2024-11-29T22:12:29.208Z] textwrap.dedent(
[2024-11-29T22:12:29.208Z] """
[2024-11-29T22:12:29.208Z] [pytest]
[2024-11-29T22:12:29.208Z] rsyncdirs=dir1/dir2
[2024-11-29T22:12:29.208Z] """
[2024-11-29T22:12:29.208Z] )
[2024-11-29T22:12:29.208Z] )
[2024-11-29T22:12:29.208Z] config = pytester.parseconfig(source)
[2024-11-29T22:12:29.208Z] > nodemanager = NodeManager(config, ["popen//chdir=%s" % dest])
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_workermanage.py:294:
[2024-11-29T22:12:29.208Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.208Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:59: in __init__
[2024-11-29T22:12:29.208Z] self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.208Z] /usr/lib/python3.12/site-packages/execnet/multi.py:39: in __init__
[2024-11-29T22:12:29.208Z] self.set_execmodel(execmodel)
[2024-11-29T22:12:29.208Z] /usr/lib/python3.12/site-packages/execnet/multi.py:69: in set_execmodel
[2024-11-29T22:12:29.208Z] self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.208Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] backend = 'main_thread_only'
[2024-11-29T22:12:29.208Z]
[2024-11-29T22:12:29.208Z] def get_execmodel(backend):
[2024-11-29T22:12:29.208Z] if hasattr(backend, "backend"):
[2024-11-29T22:12:29.208Z] return backend
[2024-11-29T22:12:29.208Z] if backend == "thread":
[2024-11-29T22:12:29.208Z] return ThreadExecModel()
[2024-11-29T22:12:29.209Z] elif backend == "eventlet":
[2024-11-29T22:12:29.209Z] return EventletExecModel()
[2024-11-29T22:12:29.209Z] elif backend == "gevent":
[2024-11-29T22:12:29.209Z] return GeventExecModel()
[2024-11-29T22:12:29.209Z] else:
[2024-11-29T22:12:29.209Z] > raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.209Z] E ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.209Z]
[2024-11-29T22:12:29.209Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:262: ValueError
[2024-11-29T22:12:29.209Z] _______________________ TestNodeManager.test_rsyncignore _______________________
[2024-11-29T22:12:29.209Z]
[2024-11-29T22:12:29.209Z] self = <test_workermanage.TestNodeManager object at 0x7a31923fe360>
[2024-11-29T22:12:29.209Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_rsyncignore0')>
[2024-11-29T22:12:29.209Z] source = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_rsyncignore1/source')
[2024-11-29T22:12:29.209Z] dest = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_rsyncignore1/dest')
[2024-11-29T22:12:29.209Z] workercontroller = None
[2024-11-29T22:12:29.209Z]
[2024-11-29T22:12:29.209Z] def test_rsyncignore(
[2024-11-29T22:12:29.209Z] self,
[2024-11-29T22:12:29.209Z] pytester: pytest.Pytester,
[2024-11-29T22:12:29.209Z] source: Path,
[2024-11-29T22:12:29.209Z] dest: Path,
[2024-11-29T22:12:29.209Z] workercontroller: None,
[2024-11-29T22:12:29.209Z] ) -> None:
[2024-11-29T22:12:29.209Z] dir2 = source.joinpath("dir1", "dir2")
[2024-11-29T22:12:29.209Z] dir2.mkdir(parents=True)
[2024-11-29T22:12:29.209Z] source.joinpath("dir5", "dir6").mkdir(parents=True)
[2024-11-29T22:12:29.209Z] source.joinpath("dir5", "dir6", "bogus").touch()
[2024-11-29T22:12:29.209Z] source.joinpath("dir5", "file").touch()
[2024-11-29T22:12:29.209Z] dir2.joinpath("hello").touch()
[2024-11-29T22:12:29.209Z] source.joinpath("foo").mkdir()
[2024-11-29T22:12:29.209Z] source.joinpath("foo", "bar").touch()
[2024-11-29T22:12:29.209Z] source.joinpath("bar").mkdir()
[2024-11-29T22:12:29.209Z] source.joinpath("bar", "foo").touch()
[2024-11-29T22:12:29.209Z] source.joinpath("tox.ini").write_text(
[2024-11-29T22:12:29.209Z] textwrap.dedent(
[2024-11-29T22:12:29.209Z] """
[2024-11-29T22:12:29.209Z] [pytest]
[2024-11-29T22:12:29.209Z] rsyncdirs = dir1 dir5
[2024-11-29T22:12:29.209Z] rsyncignore = dir1/dir2 dir5/dir6 foo*
[2024-11-29T22:12:29.209Z] """
[2024-11-29T22:12:29.209Z] )
[2024-11-29T22:12:29.209Z] )
[2024-11-29T22:12:29.209Z] config = pytester.parseconfig(source)
[2024-11-29T22:12:29.209Z] config.option.rsyncignore = ["bar"]
[2024-11-29T22:12:29.209Z] > nodemanager = NodeManager(config, ["popen//chdir=%s" % dest])
[2024-11-29T22:12:29.209Z]
[2024-11-29T22:12:29.209Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_workermanage.py:329:
[2024-11-29T22:12:29.209Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.209Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:59: in __init__
[2024-11-29T22:12:29.209Z] self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.209Z] /usr/lib/python3.12/site-packages/execnet/multi.py:39: in __init__
[2024-11-29T22:12:29.209Z] self.set_execmodel(execmodel)
[2024-11-29T22:12:29.209Z] /usr/lib/python3.12/site-packages/execnet/multi.py:69: in set_execmodel
[2024-11-29T22:12:29.209Z] self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.209Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.209Z]
[2024-11-29T22:12:29.209Z] backend = 'main_thread_only'
[2024-11-29T22:12:29.209Z]
[2024-11-29T22:12:29.209Z] def get_execmodel(backend):
[2024-11-29T22:12:29.209Z] if hasattr(backend, "backend"):
[2024-11-29T22:12:29.209Z] return backend
[2024-11-29T22:12:29.209Z] if backend == "thread":
[2024-11-29T22:12:29.209Z] return ThreadExecModel()
[2024-11-29T22:12:29.209Z] elif backend == "eventlet":
[2024-11-29T22:12:29.209Z] return EventletExecModel()
[2024-11-29T22:12:29.209Z] elif backend == "gevent":
[2024-11-29T22:12:29.209Z] return GeventExecModel()
[2024-11-29T22:12:29.209Z] else:
[2024-11-29T22:12:29.209Z] > raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.209Z] E ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.209Z]
[2024-11-29T22:12:29.209Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:262: ValueError
[2024-11-29T22:12:29.209Z] _____________________ TestNodeManager.test_optimise_popen ______________________
[2024-11-29T22:12:29.209Z]
[2024-11-29T22:12:29.209Z] self = <test_workermanage.TestNodeManager object at 0x7a31923ff6e0>
[2024-11-29T22:12:29.209Z] pytester = <Pytester PosixPath('/tmp/pytest-of-builduser/pytest-0/test_optimise_popen0')>
[2024-11-29T22:12:29.209Z] source = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_optimise_popen1/source')
[2024-11-29T22:12:29.209Z] dest = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_optimise_popen1/dest')
[2024-11-29T22:12:29.209Z] workercontroller = None
[2024-11-29T22:12:29.209Z]
[2024-11-29T22:12:29.209Z] def test_optimise_popen(
[2024-11-29T22:12:29.209Z] self,
[2024-11-29T22:12:29.209Z] pytester: pytest.Pytester,
[2024-11-29T22:12:29.209Z] source: Path,
[2024-11-29T22:12:29.209Z] dest: Path,
[2024-11-29T22:12:29.209Z] workercontroller: None,
[2024-11-29T22:12:29.209Z] ) -> None:
[2024-11-29T22:12:29.209Z] specs = ["popen"] * 3
[2024-11-29T22:12:29.209Z] source.joinpath("conftest.py").write_text("rsyncdirs = ['a']")
[2024-11-29T22:12:29.209Z] source.joinpath("a").mkdir()
[2024-11-29T22:12:29.209Z] config = pytester.parseconfig(source)
[2024-11-29T22:12:29.209Z] > nodemanager = NodeManager(config, specs)
[2024-11-29T22:12:29.209Z]
[2024-11-29T22:12:29.209Z] /build/python-pytest-xdist/src/pytest-xdist/testing/test_workermanage.py:350:
[2024-11-29T22:12:29.209Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.209Z] /build/python-pytest-xdist/src/pytest-xdist/tmp_install/usr/lib/python3.12/site-packages/xdist/workermanage.py:59: in __init__
[2024-11-29T22:12:29.209Z] self.group = execnet.Group(execmodel="main_thread_only")
[2024-11-29T22:12:29.209Z] /usr/lib/python3.12/site-packages/execnet/multi.py:39: in __init__
[2024-11-29T22:12:29.209Z] self.set_execmodel(execmodel)
[2024-11-29T22:12:29.209Z] /usr/lib/python3.12/site-packages/execnet/multi.py:69: in set_execmodel
[2024-11-29T22:12:29.209Z] self._execmodel = get_execmodel(execmodel)
[2024-11-29T22:12:29.209Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-29T22:12:29.209Z]
[2024-11-29T22:12:29.209Z] backend = 'main_thread_only'
[2024-11-29T22:12:29.209Z]
[2024-11-29T22:12:29.209Z] def get_execmodel(backend):
[2024-11-29T22:12:29.209Z] if hasattr(backend, "backend"):
[2024-11-29T22:12:29.209Z] return backend
[2024-11-29T22:12:29.209Z] if backend == "thread":
[2024-11-29T22:12:29.209Z] return ThreadExecModel()
[2024-11-29T22:12:29.209Z] elif backend == "eventlet":
[2024-11-29T22:12:29.209Z] return EventletExecModel()
[2024-11-29T22:12:29.209Z] elif backend == "gevent":
[2024-11-29T22:12:29.209Z] return GeventExecModel()
[2024-11-29T22:12:29.209Z] else:
[2024-11-29T22:12:29.209Z] > raise ValueError(f"unknown execmodel {backend!r}")
[2024-11-29T22:12:29.209Z] E ValueError: unknown execmodel 'main_thread_only'
[2024-11-29T22:12:29.209Z]
[2024-11-29T22:12:29.209Z] /usr/lib/python3.12/site-packages/execnet/gateway_base.py:262: ValueError
[2024-11-29T22:12:29.209Z] =========================== short test summary info ============================
[2024-11-29T22:12:29.209Z] SKIPPED [3] ../../../../usr/lib/python3.12/site-packages/_pytest/pytester.py:1513: could not import 'pexpect': No module named 'pexpect'
[2024-11-29T22:12:29.209Z] SKIPPED [1] testing/acceptance_test.py:805: pytest 8.3.3 does not have the pytest_warning_captured hook.
[2024-11-29T22:12:29.209Z] SKIPPED [1] testing/test_workermanage.py:357: no 'gspecs' option found
[2024-11-29T22:12:29.209Z] XFAIL testing/acceptance_test.py::TestDistEach::test_simple_diffoutput - reason: [NOTRUN] other python versions might not have pytest installed
[2024-11-29T22:12:29.209Z] XFAIL testing/acceptance_test.py::test_terminate_on_hangingnode
[2024-11-29T22:12:29.209Z] XFAIL testing/acceptance_test.py::test_session_hooks - reason: [NOTRUN] works if run outside test suite
[2024-11-29T22:12:29.209Z] XFAIL testing/acceptance_test.py::TestNodeFailure::test_each_multiple - #20: xdist race condition on node restart
[2024-11-29T22:12:29.209Z] XFAIL testing/test_dsession.py::TestDistReporter::test_rsync_printing
[2024-11-29T22:12:29.209Z] XFAIL testing/test_dsession.py::test_pytest_issue419 - duplicate test ids not supported yet
[2024-11-29T22:12:29.209Z] XFAIL testing/test_looponfail.py::TestLooponFailing::test_looponfail_removed_test - broken by pytest 3.1+
[2024-11-29T22:12:29.209Z] XFAIL testing/test_remote.py::TestWorkerInteractor::test_happy_run_events_converted - reason: implement a simple test for event production
[2024-11-29T22:12:29.209Z] XFAIL testing/test_workermanage.py::TestNodeManager::test_rsync_roots_no_roots - reason: [NOTRUN]
[2024-11-29T22:12:29.209Z] XFAIL testing/test_workermanage.py::test_unserialize_warning_msg[Nested] - Nested warning classes are not supported.
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestDistribution::test_n1_pass - assert <E...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestDistribution::test_n1_fail - assert <E...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestDistribution::test_n1_import_error - a...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestDistribution::test_n1_skip - assert <E...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestDistribution::test_manytests_to_one_popen
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestDistribution::test_exitfirst_waits_for_workers_to_finish
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestDistribution::test_basetemp_in_subprocesses
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestDistribution::test_dist_ini_specified
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestDistribution::test_dist_tests_with_crash
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestDistribution::test_distribution_rsyncdirs_example
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestDistribution::test_data_exchange - Fai...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestDistribution::test_keyboardinterrupt_hooks_issue79
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestDistEach::test_simple - assert not <Ex...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestTerminalReporting::test_output_verbosity[]
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestTerminalReporting::test_output_verbosity[-q]
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestTerminalReporting::test_output_verbosity[-v]
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestTerminalReporting::test_pass_skip_fail
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestTerminalReporting::test_fail_platinfo
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestTerminalReporting::test_logfinish_hook
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::test_teardownfails_one_function - Failed: ...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::test_session_testscollected - AssertionErr...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::test_fixture_teardown_failure - Failed: no...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::test_config_initialization - Failed: nomat...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::test_crashing_item[setup] - Failed: nomatc...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::test_crashing_item[call] - Failed: nomatch...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::test_crashing_item[teardown] - Failed: nom...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::test_multiple_log_reports - Failed: nomatc...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::test_skipping - assert <ExitCode.INTERNAL_...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::test_fixture_scope_caching_issue503 - asse...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::test_issue_594_random_parametrize - assert...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::test_tmpdir_disabled - assert <ExitCode.IN...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::test_sub_plugins_disabled[xdist.looponfail]
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestWarnings::test_warnings[-n1] - Failed:...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestWarnings::test_custom_subclass[-n1] - ...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestWarnings::test_unserializable_arguments[-n1]
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestWarnings::test_unserializable_warning_details[-n1]
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestNodeFailure::test_load_single - Failed...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestNodeFailure::test_load_multiple - Fail...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestNodeFailure::test_each_single - Failed...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestNodeFailure::test_max_worker_restart
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestNodeFailure::test_max_worker_restart_tests_queued
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestNodeFailure::test_max_worker_restart_die
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::TestNodeFailure::test_disable_restart - Fa...
[2024-11-29T22:12:29.209Z] FAILED testing/acceptance_test.py::test_worker_id_fixture[2] - Failed: nomatc...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::test_testrun_uid_fixture[2] - Failed: noma...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::test_error_report_styles[auto] - Failed: n...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::test_error_report_styles[long] - Failed: n...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::test_error_report_styles[short] - Failed: ...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::test_error_report_styles[no] - ValueError:...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::test_error_report_styles[line] - Failed: n...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::test_error_report_styles[native] - Failed:...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::test_color_yes_collection_on_non_atty - as...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::test_without_terminal_plugin - assert "INT...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::test_internal_error_with_maxfail - Failed:...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::test_maxfail_causes_early_termination - Va...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::test_internal_errors_propagate_to_controller
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestLoadScope::test_by_module - AssertionE...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestLoadScope::test_by_class - AssertionEr...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestLoadScope::test_workqueue_ordered_by_size
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestLoadScope::test_module_single_start - ...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestFileScope::test_by_module - AssertionE...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestFileScope::test_by_class - AssertionEr...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestFileScope::test_module_single_start - ...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestGroupScope::test_by_module - Assertion...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestGroupScope::test_by_class - AssertionE...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestLocking::test_single_file[each] - Valu...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestLocking::test_single_file[load] - Valu...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestLocking::test_single_file[loadscope]
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestLocking::test_single_file[loadfile] - ...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestLocking::test_single_file[worksteal]
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestLocking::test_single_file[no] - ValueE...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestLocking::test_multi_file[each] - Value...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestLocking::test_multi_file[load] - Value...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestLocking::test_multi_file[loadscope] - ...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestLocking::test_multi_file[loadfile] - V...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestLocking::test_multi_file[worksteal] - ...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::TestLocking::test_multi_file[no] - ValueEr...
[2024-11-29T22:12:29.210Z] FAILED testing/acceptance_test.py::test_collection_crash - assert <ExitCode.I...
[2024-11-29T22:12:29.210Z] FAILED testing/test_looponfail.py::TestRemoteControl::test_nofailures - EOFEr...
[2024-11-29T22:12:29.210Z] FAILED testing/test_looponfail.py::TestRemoteControl::test_failures_somewhere
[2024-11-29T22:12:29.210Z] FAILED testing/test_looponfail.py::TestRemoteControl::test_failure_change - E...
[2024-11-29T22:12:29.210Z] FAILED testing/test_looponfail.py::TestRemoteControl::test_failure_subdir_no_init
[2024-11-29T22:12:29.210Z] FAILED testing/test_looponfail.py::TestRemoteControl::test_ignore_sys_path_hook_entry
[2024-11-29T22:12:29.210Z] FAILED testing/test_looponfail.py::TestLooponFailing::test_looponfail_from_fail_to_ok
[2024-11-29T22:12:29.210Z] FAILED testing/test_looponfail.py::TestLooponFailing::test_looponfail_from_one_to_two_tests
[2024-11-29T22:12:29.210Z] FAILED testing/test_looponfail.py::TestLooponFailing::test_looponfail_multiple_errors
[2024-11-29T22:12:29.210Z] FAILED testing/test_newhooks.py::TestHooks::test_runtest_logreport - Failed: ...
[2024-11-29T22:12:29.210Z] FAILED testing/test_newhooks.py::TestHooks::test_node_collection_finished - F...
[2024-11-29T22:12:29.210Z] FAILED testing/test_newhooks.py::TestCrashItem::test_handlecrashitem - Failed...
[2024-11-29T22:12:29.210Z] FAILED testing/test_newhooks.py::TestCrashItem::test_handlecrashitem_one - Fa...
[2024-11-29T22:12:29.210Z] FAILED testing/test_plugin.py::test_testrunuid_provided - ValueError: unknown...
[2024-11-29T22:12:29.210Z] FAILED testing/test_plugin.py::test_testrunuid_generated - ValueError: unknow...
[2024-11-29T22:12:29.210Z] FAILED testing/test_plugin.py::TestDistOptions::test_getxspecs - ValueError: ...
[2024-11-29T22:12:29.210Z] FAILED testing/test_plugin.py::TestDistOptions::test_xspecs_multiplied - Valu...
[2024-11-29T22:12:29.210Z] FAILED testing/test_plugin.py::TestDistOptions::test_getrsyncdirs - ValueErro...
[2024-11-29T22:12:29.210Z] FAILED testing/test_plugin.py::TestDistOptions::test_getrsyncignore - ValueEr...
[2024-11-29T22:12:29.210Z] FAILED testing/test_plugin.py::TestDistOptions::test_getrsyncdirs_with_conftest
[2024-11-29T22:12:29.210Z] FAILED testing/test_remote.py::TestWorkerInteractor::test_basic_collect_and_runtests
[2024-11-29T22:12:29.210Z] FAILED testing/test_remote.py::TestWorkerInteractor::test_remote_collect_skip
[2024-11-29T22:12:29.210Z] FAILED testing/test_remote.py::TestWorkerInteractor::test_remote_collect_fail
[2024-11-29T22:12:29.210Z] FAILED testing/test_remote.py::TestWorkerInteractor::test_runtests_all - OSEr...
[2024-11-29T22:12:29.210Z] FAILED testing/test_remote.py::TestWorkerInteractor::test_process_from_remote_error_handling
[2024-11-29T22:12:29.210Z] FAILED testing/test_remote.py::TestWorkerInteractor::test_steal_work - OSErro...
[2024-11-29T22:12:29.210Z] FAILED testing/test_remote.py::TestWorkerInteractor::test_steal_empty_queue
[2024-11-29T22:12:29.210Z] FAILED testing/test_remote.py::test_remote_env_vars - assert <ExitCode.INTERN...
[2024-11-29T22:12:29.210Z] FAILED testing/test_remote.py::test_remote_inner_argv - assert <ExitCode.INTE...
[2024-11-29T22:12:29.210Z] FAILED testing/test_remote.py::test_remote_mainargv - assert <ExitCode.INTERN...
[2024-11-29T22:12:29.210Z] FAILED testing/test_remote.py::test_remote_usage_prog - assert <ExitCode.INTE...
[2024-11-29T22:12:29.210Z] FAILED testing/test_remote.py::test_remote_sys_path - assert <ExitCode.INTERN...
[2024-11-29T22:12:29.210Z] FAILED testing/test_workermanage.py::TestNodeManagerPopen::test_popen_no_default_chdir
[2024-11-29T22:12:29.210Z] FAILED testing/test_workermanage.py::TestNodeManagerPopen::test_default_chdir
[2024-11-29T22:12:29.210Z] FAILED testing/test_workermanage.py::TestNodeManagerPopen::test_popen_makegateway_events
[2024-11-29T22:12:29.210Z] FAILED testing/test_workermanage.py::TestNodeManagerPopen::test_popens_rsync
[2024-11-29T22:12:29.210Z] FAILED testing/test_workermanage.py::TestNodeManagerPopen::test_rsync_popen_with_path
[2024-11-29T22:12:29.210Z] FAILED testing/test_workermanage.py::TestNodeManagerPopen::test_rsync_same_popen_twice
[2024-11-29T22:12:29.210Z] FAILED testing/test_workermanage.py::TestHRSync::test_hrsync_one_host - EOFEr...
[2024-11-29T22:12:29.210Z] FAILED testing/test_workermanage.py::TestNodeManager::test_popen_rsync_subdir
[2024-11-29T22:12:29.210Z] FAILED testing/test_workermanage.py::TestNodeManager::test_rsync_report[-q-False]
[2024-11-29T22:12:29.210Z] FAILED testing/test_workermanage.py::TestNodeManager::test_rsync_report[-False]
[2024-11-29T22:12:29.210Z] FAILED testing/test_workermanage.py::TestNodeManager::test_rsync_report[-v-True]
[2024-11-29T22:12:29.210Z] FAILED testing/test_workermanage.py::TestNodeManager::test_init_rsync_roots
[2024-11-29T22:12:29.210Z] FAILED testing/test_workermanage.py::TestNodeManager::test_rsyncignore - Valu...
[2024-11-29T22:12:29.210Z] FAILED testing/test_workermanage.py::TestNodeManager::test_optimise_popen - V...
[2024-11-29T22:12:29.210Z] ============ 123 failed, 69 passed, 5 skipped, 10 xfailed in 17.12s ============
[2024-11-29T22:12:29.460Z] ==> ERROR: A failure occurred in check().
[2024-11-29T22:12:29.460Z] Aborting...
[2024-11-29T22:12:31.321Z] ==> ERROR: Build failed, check /build/buildpkg/world-x86_64/jenkins/build
[Pipeline] }
[2024-11-29T22:12:31.323Z] ERROR: Failed to build source
[2024-11-29T22:12:31.323Z] ERROR: script returned exit code 255
[2024-11-29T22:12:31.323Z] Setting overall build result to FAILURE
[Pipeline] // catchError
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Check)
Stage "Check" skipped due to when conditional
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Sign)
Stage "Sign" skipped due to when conditional
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Add)
Stage "Add" skipped due to when conditional
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Remove)
Stage "Remove" skipped due to when conditional
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
[Pipeline] emailext
[2024-11-29T22:12:31.486Z] Sending email to: artix-build-failures at artixlinux.org
More information about the artix-build-failures
mailing list