diff --git a/setup.py b/setup.py index b8cfcf1..e0ec034 100644 --- a/setup.py +++ b/setup.py @@ -7,11 +7,10 @@ for the new options. """ from setuptools import setup -from xdist import __version__ setup( name="pytest-xdist", - version=__version__, + version='1.5a2', description='py.test xdist plugin for distributed testing and loop-on-failing modes', long_description=__doc__, license='GPLv2 or later', @@ -36,4 +35,4 @@ setup( 'Programming Language :: Python', 'Programming Language :: Python :: 3', ], -) +) \ No newline at end of file diff --git a/xdist/__init__.py b/xdist/__init__.py index 5eb2357..321cf98 100644 --- a/xdist/__init__.py +++ b/xdist/__init__.py @@ -1,3 +1,2 @@ # -__version__ = "1.5a1" - +__version__ = '1.5a2' \ No newline at end of file diff --git a/xdist/looponfail.py b/xdist/looponfail.py index 9f6c203..da76e96 100644 --- a/xdist/looponfail.py +++ b/xdist/looponfail.py @@ -152,15 +152,16 @@ class SlaveFailSession: if self.topdir and self.trails: self.topdir = py.path.local(self.topdir) self.collection.topdir = self.topdir - nodes = [] + col = self.collection + items = [] for trail in self.trails: - names = self.collection._parsearg(trail, base=self.topdir) + names = col._parsearg(trail, base=self.topdir) try: - self.collection.genitems( - [self.collection._topcollector], names, nodes) + for node in col.matchnodes([col._topcollector], names): + items.extend(col.genitems(node)) except self.config.Error: pass # ignore collect errors / vanished tests - self.collection.items = nodes + self.collection.items = items return True self.topdir = session.collection.topdir