diff test/testemulation.py @ 384:94f5b719ad0b

Small refactor
author Windel Bouwman
date Sun, 27 Apr 2014 17:50:25 +0200
parents 9667d78ba79e
children
line wrap: on
line diff
--- a/test/testemulation.py	Sun Apr 27 17:40:39 2014 +0200
+++ b/test/testemulation.py	Sun Apr 27 17:50:25 2014 +0200
@@ -21,6 +21,8 @@
 
 def has_qemu():
     """ Determines if qemu is possible """
+    if not hasattr(shutil, 'which'):
+        return False
     return bool(shutil.which(qemu_app))