From f0e36d52e704c3539b27593ce9cb51844930d2eb Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 30 Aug 2017 10:36:37 -0400 Subject: tests: bypass cache hacking for test:///default To allow us to test the standard code in some cases. Would have caught the previous issue --- tests/utils.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/utils.py') diff --git a/tests/utils.py b/tests/utils.py index 4c8547bb..7397d369 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -84,6 +84,11 @@ def openconn(uri): virtinst.util.register_libvirt_error_handler() conn = virtinst.cli.getConnection(uri) + # For the basic test:///default URI, skip this caching, so we have + # an option to test the stock code + if uri == uri_test_default: + return conn + if uri not in _conn_cache: conn.fetch_all_guests() conn.fetch_all_pools() -- cgit v1.2.1