[py-dev] [hpk42/pytest] xdist hides errors (issue #180)

Ralf Schmitt issues-reply at bitbucket.org
Wed Aug 22 14:35:59 CEST 2012


--- you can reply above this line ---

New issue 180: xdist hides errors
https://bitbucket.org/hpk42/pytest/issue/180/xdist-hides-errors

Ralf Schmitt:

when running without xdist I get the following error:

$ py.test
======================================= test session starts =======================================
platform linux2 -- Python 2.7.3 -- pytest-2.2.4
collected 0 items / 1 errors

============================================= ERRORS ==============================================
_______________________________________ ERROR collecting . ________________________________________
../ve/local/lib/python2.7/site-packages/py/_path/common.py:315: in visit
>       for x in Visitor(fil, rec, ignore, bf, sort).gen(self):
../ve/local/lib/python2.7/site-packages/py/_path/common.py:351: in gen
>                   if p.check(dir=1) and (rec is None or rec(p))])
../ve/local/lib/python2.7/site-packages/_pytest/main.py:484: in _recurse
>       ihook.pytest_collect_directory(path=path, parent=self)
../ve/local/lib/python2.7/site-packages/_pytest/main.py:140: in call_matching_hooks
>       plugins = self.config._getmatchingplugins(self.fspath)
../ve/local/lib/python2.7/site-packages/_pytest/config.py:289: in _getmatchingplugins
>       plugins += self._conftest.getconftestmodules(fspath)
../ve/local/lib/python2.7/site-packages/_pytest/config.py:188: in getconftestmodules
>                       clist.append(self.importconftest(conftestpath))
../ve/local/lib/python2.7/site-packages/_pytest/config.py:224: in importconftest
>           self._postimport(mod)
../ve/local/lib/python2.7/site-packages/_pytest/config.py:229: in _postimport
>           self._onimport(mod)
../ve/local/lib/python2.7/site-packages/_pytest/config.py:278: in _onimportconftest
>       self.pluginmanager.consider_conftest(conftestmodule)
../ve/local/lib/python2.7/site-packages/_pytest/core.py:179: in consider_conftest
>       if self.register(conftestmodule, name=conftestmodule.__file__):
../ve/local/lib/python2.7/site-packages/_pytest/core.py:89: in register
>       self.hook.pytest_plugin_registered(manager=self, plugin=plugin)
../ve/local/lib/python2.7/site-packages/_pytest/core.py:421: in __call__
>       return self._docall(methods, kwargs)
../ve/local/lib/python2.7/site-packages/_pytest/core.py:432: in _docall
>           res = mc.execute()
../ve/local/lib/python2.7/site-packages/_pytest/core.py:350: in execute
>           res = method(**kwargs)
../ve/local/lib/python2.7/site-packages/_pytest/core.py:231: in pytest_plugin_registered
>               {'config': self._config})
../ve/local/lib/python2.7/site-packages/_pytest/core.py:317: in call_plugin
>               kwargs=kwargs, firstresult=True).execute()
../ve/local/lib/python2.7/site-packages/_pytest/core.py:350: in execute
>           res = method(**kwargs)
easyindex/conftest.py:75: in pytest_configure
>           build_index()
easyindex/conftest.py:55: in build_index
>           index = EasyIndex.Index(indexname + ".tmp")
easyindex/EasyIndex/__init__.py:45: in Index
>       from EasyIndex.core import Index
easyindex/EasyIndex/core.py:10: in <module>
>   import _pyfilter
E   ImportError: No module named _ezindex
----------------------------------------- Captured stdout -----------------------------------------
[building initial index in /home/ralf/bbot/easyindex/tmp_dummy_test_index...
===================================== 1 error in 0.08 seconds =====================================



Running with py.test -n6 gives:

$ py.test -n6
======================================= test session starts =======================================
platform linux2 -- Python 2.7.3 -- pytest-2.2.4
gw0 [0] / gw1 [0] / gw2 [0] / gw3 [0] / gw4 [0] / gw5 [0]
scheduling tests via LoadScheduling

========================================  in 0.54 seconds =========================================



xdist hides the error in that case!



--

This is an issue notification from bitbucket.org. You are receiving
this either because you are the owner of the issue, or you are
following the issue.



More information about the Pytest-dev mailing list