Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

Commit 9ba4603

Browse files
committed
Fix pytest serialization issue
Mainly pytest options must be serializable and our code was passing Driver instances instead of strings to pytest options dictionary. This was breaking python-xdist module, even if pytest-molecule was not used. Related: pytest-dev/pytest-xdist#464
1 parent 15bbeec commit 9ba4603

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_molecule/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def pytest_configure(config):
4747
warnings.filterwarnings("ignore", category=DeprecationWarning)
4848

4949
config.option.molecule = {}
50-
for driver in drivers():
50+
for driver in map(str, drivers()):
5151
config.addinivalue_line(
5252
"markers",
5353
"{0}: mark test to run only when {0} is available".format(driver),

0 commit comments

Comments
 (0)