mirror of https://github.com/ansible/ansible
test: Handle Singleton Display class (#83673)
Fixes: #83538 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>pull/83723/head
parent
91f680a749
commit
207a5fbebb
@ -0,0 +1,18 @@
|
||||
# Copyright: Contributors to the Ansible project
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import pytest
|
||||
|
||||
from ansible.utils.display import Display
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def display_resource(request):
|
||||
Display._Singleton__instance = None
|
||||
|
||||
def teardown():
|
||||
Display._Singleton__instance = None
|
||||
|
||||
request.addfinalizer(teardown)
|
||||
Loading…
Reference in new issue