Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b239199061 | ||
|
|
e4bcbbee78 | ||
|
|
f6308cad01 | ||
|
|
aa89c42ad7 | ||
|
|
40fa7b091d | ||
|
|
ad99d943de | ||
|
|
0d2480f7e3 |
@@ -1,3 +1,12 @@
|
|||||||
|
pytest-xdist 2.2.1 (2021-02-09)
|
||||||
|
===============================
|
||||||
|
|
||||||
|
Bug Fixes
|
||||||
|
---------
|
||||||
|
|
||||||
|
- `#623 <https://github.com/pytest-dev/pytest-xdist/issues/623>`_: Gracefully handle the pending deprecation of Node.fspath by using config.rootpath for topdir.
|
||||||
|
|
||||||
|
|
||||||
pytest-xdist 2.2.0 (2020-12-14)
|
pytest-xdist 2.2.0 (2020-12-14)
|
||||||
===============================
|
===============================
|
||||||
|
|
||||||
|
|||||||
1
setup.py
1
setup.py
@@ -44,5 +44,6 @@ setup(
|
|||||||
"Programming Language :: Python :: 3.6",
|
"Programming Language :: Python :: 3.6",
|
||||||
"Programming Language :: Python :: 3.7",
|
"Programming Language :: Python :: 3.7",
|
||||||
"Programming Language :: Python :: 3.8",
|
"Programming Language :: Python :: 3.8",
|
||||||
|
"Programming Language :: Python :: 3.9",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -93,9 +93,14 @@ class WorkerInteractor:
|
|||||||
)
|
)
|
||||||
|
|
||||||
def pytest_collection_finish(self, session):
|
def pytest_collection_finish(self, session):
|
||||||
|
try:
|
||||||
|
topdir = str(self.config.rootpath)
|
||||||
|
except AttributeError: # pytest <= 6.1.0
|
||||||
|
topdir = str(self.config.rootdir)
|
||||||
|
|
||||||
self.sendevent(
|
self.sendevent(
|
||||||
"collectionfinish",
|
"collectionfinish",
|
||||||
topdir=str(session.fspath),
|
topdir=topdir,
|
||||||
ids=[item.nodeid for item in session.items],
|
ids=[item.nodeid for item in session.items],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
4
tox.ini
4
tox.ini
@@ -42,7 +42,9 @@ commands =
|
|||||||
towncrier --version {posargs} --yes
|
towncrier --version {posargs} --yes
|
||||||
|
|
||||||
[pytest]
|
[pytest]
|
||||||
addopts = -ra
|
# pytest-services also defines a worker_id fixture, disable
|
||||||
|
# it so they don't conflict with each other (#611).
|
||||||
|
addopts = -ra -p no:pytest-services
|
||||||
testpaths = testing
|
testpaths = testing
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
|
|||||||
Reference in New Issue
Block a user