summaryrefslogtreecommitdiff
path: root/tests/unittests/helpers.py
diff options
context:
space:
mode:
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-06-09 10:35:39 +0200
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-06-09 10:35:39 +0200
commit0e734b63c64c5534813d7647d33870c9fc3d3a0c (patch)
tree3a6c5732f2abd228c51374eb9cfc7d8661209551 /tests/unittests/helpers.py
parent108511d93b336e0b8e0807fbe876bad4cc07277f (diff)
downloadvyos-cloud-init-0e734b63c64c5534813d7647d33870c9fc3d3a0c.tar.gz
vyos-cloud-init-0e734b63c64c5534813d7647d33870c9fc3d3a0c.zip
mock is_resolvable in mirrorfail tests to remove dependency to external net
Diffstat (limited to 'tests/unittests/helpers.py')
-rw-r--r--tests/unittests/helpers.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/unittests/helpers.py b/tests/unittests/helpers.py
index 59361215..50b2bd72 100644
--- a/tests/unittests/helpers.py
+++ b/tests/unittests/helpers.py
@@ -344,20 +344,3 @@ except AttributeError:
print(reason, file=sys.stderr)
return wrapper
return decorator
-
-# on SkipTest:
-# - unittest SkipTest is first preference, but it's only available
-# for >= 2.7
-# - unittest2 SkipTest is second preference for older pythons. This
-# mirrors logic for choosing SkipTest exception in testtools
-# - if none of the above, provide custom class
-try:
- from unittest.case import SkipTest
-except ImportError:
- try:
- from unittest2.case import SkipTest
- except ImportError:
- class SkipTest(Exception):
- """Raise this exception to mark a test as skipped.
- """
- pass