fix for collection unification changes on pytest dev
This commit is contained in:
5
setup.py
5
setup.py
@@ -7,11 +7,10 @@ for the new options.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
from xdist import __version__
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="pytest-xdist",
|
name="pytest-xdist",
|
||||||
version=__version__,
|
version='1.5a2',
|
||||||
description='py.test xdist plugin for distributed testing and loop-on-failing modes',
|
description='py.test xdist plugin for distributed testing and loop-on-failing modes',
|
||||||
long_description=__doc__,
|
long_description=__doc__,
|
||||||
license='GPLv2 or later',
|
license='GPLv2 or later',
|
||||||
@@ -36,4 +35,4 @@ setup(
|
|||||||
'Programming Language :: Python',
|
'Programming Language :: Python',
|
||||||
'Programming Language :: Python :: 3',
|
'Programming Language :: Python :: 3',
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
@@ -1,3 +1,2 @@
|
|||||||
#
|
#
|
||||||
__version__ = "1.5a1"
|
__version__ = '1.5a2'
|
||||||
|
|
||||||
@@ -152,15 +152,16 @@ class SlaveFailSession:
|
|||||||
if self.topdir and self.trails:
|
if self.topdir and self.trails:
|
||||||
self.topdir = py.path.local(self.topdir)
|
self.topdir = py.path.local(self.topdir)
|
||||||
self.collection.topdir = self.topdir
|
self.collection.topdir = self.topdir
|
||||||
nodes = []
|
col = self.collection
|
||||||
|
items = []
|
||||||
for trail in self.trails:
|
for trail in self.trails:
|
||||||
names = self.collection._parsearg(trail, base=self.topdir)
|
names = col._parsearg(trail, base=self.topdir)
|
||||||
try:
|
try:
|
||||||
self.collection.genitems(
|
for node in col.matchnodes([col._topcollector], names):
|
||||||
[self.collection._topcollector], names, nodes)
|
items.extend(col.genitems(node))
|
||||||
except self.config.Error:
|
except self.config.Error:
|
||||||
pass # ignore collect errors / vanished tests
|
pass # ignore collect errors / vanished tests
|
||||||
self.collection.items = nodes
|
self.collection.items = items
|
||||||
return True
|
return True
|
||||||
self.topdir = session.collection.topdir
|
self.topdir = session.collection.topdir
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user