Avoid weird test error when mox is missing

Fail early if you can't import mox, rather than return
a cryptic and undecipherable error. Fixes bug 810424.

Change-Id: Ie56d3e7447bbba841fdc882cb1f8f70e234812ef
This commit is contained in:
Thierry Carrez
2012-02-02 17:26:30 +01:00
parent d41186423e
commit 3fa3b83ea5

View File

@@ -37,6 +37,7 @@ setattr(__builtin__, '_', lambda x: x)
def setup():
import mox # Fail fast if you don't have mox. Workaround for bug 810424
import os
import shutil