Import mock so that it works on Python 3.x

Running oslotest's tests fail on Python 3.x because of the "import mock"
lines in test_output.py and test_timeout.py.  That works for 2.x because
"mock" is an independent package, but in 3.x, it's a part of unittest in
the standard library.  This difference is covered in six.moves, which is
where mock is imported from in other test modules.

Change-Id: I3882c2a9be8abc93cf95942579cb9562c6377c01
Closes-Bug: #1607963
This commit is contained in:
Danek Duvall 2016-07-29 14:19:07 -07:00
parent 3fc3c96164
commit 425d465122
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ import sys
from oslotest import output
import mock
from six.moves import mock
import testtools

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
from six.moves import mock
import testtools
from oslotest import timeout