mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-06 02:32:23 +00:00
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.
This commit is contained in:
parent
468cb05597
commit
99cbd6dec4
2 changed files with 10 additions and 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>
|
2008-06-27 Jan Schmidt <jan.schmidt@sun.com>
|
||||||
|
|
||||||
* gst/gstbuffer.override:
|
* gst/gstbuffer.override:
|
||||||
|
|
|
@ -25,6 +25,11 @@ from common import gst, unittest, TestCase
|
||||||
class PadTest(TestCase):
|
class PadTest(TestCase):
|
||||||
|
|
||||||
def testQuery(self):
|
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 = gst.XML()
|
||||||
xml.parse_memory("""<?xml version="1.0"?>
|
xml.parse_memory("""<?xml version="1.0"?>
|
||||||
<gstreamer xmlns:gst="http://gstreamer.net/gst-core/1.0/">
|
<gstreamer xmlns:gst="http://gstreamer.net/gst-core/1.0/">
|
||||||
|
|
Loading…
Reference in a new issue