Commit fdb98df7 authored by Mike Frysinger's avatar Mike Frysinger
Browse files

sixish: skip mock if unavailable

Since Python 2 doesn't include mock in the stdlib, not everyone has it.
While for unittests we make people install it, for normal hook usage,
we don't want that.  So don't require it to be imported all the time.
When running unittests, it'll still result in a missing failure.

Bug: 28298984
Test: unittests & upload still pass w/out mock installed
Change-Id: Ia9e66775df7d2150537acd0a6383b48d3303b491
parent ea449c7b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment