Skip to content

Commit

Permalink
Clarify pytest_configure hook call order
Browse files Browse the repository at this point in the history
Fix #2539
  • Loading branch information
nicoddemus committed Jul 4, 2017
1 parent b63f677 commit 19f36a8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
14 changes: 11 additions & 3 deletions _pytest/hookspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,17 @@ def pytest_addoption(parser):

@hookspec(historic=True)
def pytest_configure(config):
""" called after command line options have been parsed
and all plugins and initial conftest files been loaded.
This hook is called for every plugin.
"""
Allows plugins and conftest files to perform initial configuration.
This hook is called for every plugin and initial conftest file
after command line options have been parsed.
After that, the hook is called for other conftest files as they are
imported.
:arg config: pytest config object
:type config: _pytest.config.Config
"""

# -------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions changelog/2539.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify ``pytest_configure`` hook call order

0 comments on commit 19f36a8

Please sign in to comment.