libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [12/14] libcloud git commit: Always use packaged mock.
Date Wed, 13 Jul 2016 09:44:26 GMT
Always use packaged mock.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/d9fc1eda
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/d9fc1eda
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/d9fc1eda

Branch: refs/heads/trunk
Commit: d9fc1edaf6b3f52b1141ab80c1d88d97a964380a
Parents: 01c6db4
Author: Tomaz Muraus <tomaz@tomaz.me>
Authored: Wed Jul 13 11:34:47 2016 +0200
Committer: Tomaz Muraus <tomaz@tomaz.me>
Committed: Wed Jul 13 11:34:47 2016 +0200

----------------------------------------------------------------------
 libcloud/test/compute/test_libvirt_driver.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/d9fc1eda/libcloud/test/compute/test_libvirt_driver.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_libvirt_driver.py b/libcloud/test/compute/test_libvirt_driver.py
index 22391da..be8513b 100644
--- a/libcloud/test/compute/test_libvirt_driver.py
+++ b/libcloud/test/compute/test_libvirt_driver.py
@@ -15,15 +15,15 @@
 
 import sys
 
-from libcloud.compute.drivers.libvirt_driver import LibvirtNodeDriver
-from libcloud.utils.py3 import unittest2_required
+import mock
 
+from libcloud.compute.drivers.libvirt_driver import LibvirtNodeDriver
 
 from libcloud.test import unittest
-if unittest2_required:
-    import mock
-else:
-    from unittest import mock
+
+__all__ = [
+    'LibvirtNodeDriverTestCase'
+]
 
 
 @mock.patch('libcloud.compute.drivers.libvirt_driver.libvirt', autospec=True)


Mime
View raw message