summaryrefslogtreecommitdiffstats
path: root/pym/portage/tests/glsa/test_security_set.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/tests/glsa/test_security_set.py')
-rw-r--r--pym/portage/tests/glsa/test_security_set.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/pym/portage/tests/glsa/test_security_set.py b/pym/portage/tests/glsa/test_security_set.py
index 7b209f429..edf567809 100644
--- a/pym/portage/tests/glsa/test_security_set.py
+++ b/pym/portage/tests/glsa/test_security_set.py
@@ -58,8 +58,21 @@ class SecuritySetTestCase(TestCase):
</glsa>
"""
+ def _must_skip(self):
+ try:
+ __import__("xml.etree.ElementTree")
+ __import__("xml.parsers.expat").parsers.expat.ExpatError
+ except (AttributeError, ImportError):
+ return "python is missing xml support"
+
def testSecuritySet(self):
+ skip_reason = self._must_skip()
+ if skip_reason:
+ self.portage_skip = skip_reason
+ self.assertFalse(True, skip_reason)
+ return
+
ebuilds = {
"cat/A-vulnerable-2.2": {
"KEYWORDS": "x86"