From edbfd3843e1189757f7f20af5c873ad0a3b2ce94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 18 Jan 2018 16:51:05 +0100 Subject: [PATCH] tests: make tests.extra.VMWrapper hashable Allow using VMWrapper as dict key, same as QubesVM. --- qubes/tests/extra.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qubes/tests/extra.py b/qubes/tests/extra.py index 9208cab6..98fc6e71 100644 --- a/qubes/tests/extra.py +++ b/qubes/tests/extra.py @@ -62,6 +62,9 @@ class VMWrapper(object): def __eq__(self, other): return self._vm == other + def __hash__(self): + return hash(self._vm) + def start(self): return self._loop.run_until_complete(self._vm.start())