diff options
author | Jürg Billeter <j@bitron.ch> | 2019-07-16 15:51:39 +0200 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-07-17 10:42:53 +0000 |
commit | df92e8e08ea4ddfd58d6cfbf63d758cda5d3d44f (patch) | |
tree | 18552a6b837d8df1a4ec01a2d043d0a64634890f /tests/conftest.py | |
parent | 6160a64cfc4788d9c7e0519b77f55ed870b6a6a7 (diff) | |
download | buildstream-df92e8e08ea4ddfd58d6cfbf63d758cda5d3d44f.tar.gz |
Store Platform reference in Context instance variable
This allows us to remove the platform reset helpers in
tests/conftest.py.
Diffstat (limited to 'tests/conftest.py')
-rwxr-xr-x | tests/conftest.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 138ae0745..77f8666a6 100755 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -21,7 +21,6 @@ # import os import pytest -from buildstream._platform.platform import Platform from buildstream.testing import register_repo_kind, sourcetests_collection_hook from buildstream.testing.integration import integration_cache # pylint: disable=unused-import @@ -103,22 +102,6 @@ def remote_services(request): ################################################# -# Automatically reset the platform # -################################################# -# -# This might need some refactor, maybe buildstream -# needs to cleanup more gracefully and we could remove this. -# -def clean_platform_cache(): - Platform._instance = None - - -@pytest.fixture(autouse=True) -def ensure_platform_cache_is_clean(): - clean_platform_cache() - - -################################################# # Setup for templated source tests # ################################################# register_repo_kind('git', Git) |