pytest-dev / pytest-dev/pytest-xdist

xdist munges error message if a requested path does not exist

Open
#109 11 comments 0 reactions 1 assignee View on GitHub

@nicoddemus is already working on this.

Since Jan 12, 2017.

bug help wanted
Dominant language
Python
Stars
1.9k
Forks
287
Avg merge
9h 30m
Merged PRs (30d)
2

Description

Using code in this branch: https://github.com/nexB/scancode-toolkit/pull/414 calling py.test on a non-existing path does not return an error message with xdist, it just runs no tests:

(scancode-toolkit) pombreda@COMPUTER:~/w421/scancode-toolkit$ py.test -vvs -n 2 MISSING
========================================================================== test session starts ==========================================================================
platform linux2 -- Python 2.7.6, pytest-3.0.5, py-1.4.32, pluggy-0.4.0 -- /home/pombreda/w421/scancode-toolkit/bin/python2.7
cachedir: .cache
rootdir: /home/pombreda/w421/scancode-toolkit, inifile: setup.cfg
plugins: xdist-1.15.0
[gw0] linux2 Python 2.7.6 cwd: /home/pombreda/w421/scancode-toolkit
[gw1] linux2 Python 2.7.6 cwd: /home/pombreda/w421/scancode-toolkit
[gw0] Python 2.7.6 (default, Oct 26 2016, 20:30:19)  -- [GCC 4.8.4]
[gw1] Python 2.7.6 (default, Oct 26 2016, 20:30:19)  -- [GCC 4.8.4]
gw0 [0] / gw1 [0]
scheduling tests via LoadScheduling

===================================================================== no tests ran in 0.30 seconds ======================================================================

In contrast without xdist, it does print alright: ERROR: file not found: MISSING


(scancode-toolkit) pombreda@COMPUTER:~/w421/scancode-toolkit$ py.test -vvs  MISSING
========================================================================== test session starts ==========================================================================
platform linux2 -- Python 2.7.6, pytest-3.0.5, py-1.4.32, pluggy-0.4.0 -- /home/pombreda/w421/scancode-toolkit/bin/python2.7
cachedir: .cache
rootdir: /home/pombreda/w421/scancode-toolkit, inifile: setup.cfg
plugins: xdist-1.15.0

===================================================================== no tests ran in 0.00 seconds ======================================================================
ERROR: file not found: MISSING

Contributor guide

No contributing guide indexed for this repository

First steps

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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.