Skip to content

Commit

Permalink
Fix pytest_namespace deprecation (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceone authored and prologic committed Dec 7, 2018
1 parent cd1563b commit b63a455
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions examples/testing/pytest/conftest.py
Expand Up @@ -104,9 +104,9 @@ def finalizer():
return watcher


def pytest_namespace():
return dict((
("WaitEvent", WaitEvent),
("PLATFORM", sys.platform),
("PYVER", sys.version_info[:3]),
))
for key, value in dict((
("WaitEvent", WaitEvent),
("PLATFORM", sys.platform),
("PYVER", sys.version_info[:3]),
)).items():
setattr(pytest, key, value)
18 changes: 9 additions & 9 deletions tests/conftest.py
Expand Up @@ -142,12 +142,12 @@ def finalizer():
return watcher


def pytest_namespace():
return dict((
("WaitEvent", WaitEvent),
("wait_for", wait_for),
("call_event", call_event),
("PLATFORM", sys.platform),
("PYVER", sys.version_info[:3]),
("call_event_from_name", call_event_from_name),
))
for key, value in dict((
("WaitEvent", WaitEvent),
("wait_for", wait_for),
("call_event", call_event),
("PLATFORM", sys.platform),
("PYVER", sys.version_info[:3]),
("call_event_from_name", call_event_from_name),
)).items():
setattr(pytest, key, value)

0 comments on commit b63a455

Please sign in to comment.