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

Commit

Permalink
Fix pytest serialization issue
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ssbarnea committed Nov 2, 2019
1 parent 15bbeec commit 66bf3f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_molecule/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def pytest_configure(config):
warnings.filterwarnings("ignore", category=DeprecationWarning)

config.option.molecule = {}
for driver in drivers():
for driver in map(str, drivers()):
config.addinivalue_line(
"markers",
"{0}: mark test to run only when {0} is available".format(driver),
Expand Down

0 comments on commit 66bf3f5

Please sign in to comment.