diff options
author | Edward Hervey <bilboed@bilboed.com> | 2008-06-27 10:29:58 +0000 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2008-06-27 10:29:58 +0000 |
commit | 99cbd6dec462b5c341f0b70fe945e19dc22100a6 (patch) | |
tree | e3b792001ae41aef7932e4bd3dd448bd7da0b86f | |
parent | 468cb05597958290ed0eb30432dde4af07eaa12b (diff) |
testsuite/test_xml.py: Don't attempt to test gst.XML if there's no available libxml2 module.
Original commit message from CVS:
* testsuite/test_xml.py:
Don't attempt to test gst.XML if there's no available libxml2 module.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | testsuite/test_xml.py | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2008-06-27 Edward Hervey <edward.hervey@collabora.co.uk> + + * testsuite/test_xml.py: + Don't attempt to test gst.XML if there's no available libxml2 module. + 2008-06-27 Jan Schmidt <jan.schmidt@sun.com> * gst/gstbuffer.override: diff --git a/testsuite/test_xml.py b/testsuite/test_xml.py index 2097cf6..615a41a 100644 --- a/testsuite/test_xml.py +++ b/testsuite/test_xml.py @@ -25,6 +25,11 @@ from common import gst, unittest, TestCase class PadTest(TestCase): def testQuery(self): + # don't run this test if we don't have the libxml2 module + try: + import libxml2 + except: + return xml = gst.XML() xml.parse_memory("""<?xml version="1.0"?> <gstreamer xmlns:gst="http://gstreamer.net/gst-core/1.0/"> |