Skip to content
Browse files

Merge pull request #467 from Emantor/fix/pytest_config_deprecation

pytestplugin/fixtures: use request.config
  • Loading branch information...
jluebbe committed Jul 10, 2019
2 parents 408de42 + 5ea94a2 commit 6ea45bbf338116567866b0844b55b4d7ae052895
Showing with 2 additions and 2 deletions.
  1. +2 −2 labgrid/pytestplugin/
@@ -53,8 +53,8 @@ def env(request):
if not env:
pytest.skip("missing environment config (use --lg-env)")

if pytest.config.pluginmanager.hasplugin('junitxml'):
my_junit = getattr(pytest.config, '_xml', None)
if request.config.pluginmanager.hasplugin('junitxml'):
my_junit = getattr(request.config, '_xml', None)

if my_junit:
my_junit.add_global_property('ENV_CONFIG', env.config_file)

0 comments on commit 6ea45bb

Please sign in to comment.
You can’t perform that action at this time.