diff --git a/test/rhsmlib/dbus/test_consumer.py b/test/rhsmlib/dbus/test_consumer.py index a7d61dcf95..13711d7592 100644 --- a/test/rhsmlib/dbus/test_consumer.py +++ b/test/rhsmlib/dbus/test_consumer.py @@ -25,7 +25,7 @@ def setUpClass(cls) -> None: name="get_consumer_uuid", ) cls.patches["get_consumer_uuid"] = get_consumer_uuid_patch.start() - cls.addClassCleanup(get_consumer_uuid_patch) + cls.addClassCleanup(get_consumer_uuid_patch.stop) cls.impl = ConsumerDBusImplementation()