mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-06 01:19:38 +00:00
f203f4826c
Original commit message from CVS: * testsuite/pipeline.py (PipelineConstructor.testGoodConstructor) (PipelineConstructor.testBadConstruct) (ThreadConstructor.testCreate): New tests * testsuite/element.py (ElementTest.testGoodConstructor): Add isinstance(element, gst.Element) test * testsuite/common.py: Clean up, use ltihooks (init) Assign tp_new for pipeline and thread to PyType_GenericNew for now.
31 lines
603 B
Python
31 lines
603 B
Python
import dl
|
|
import os
|
|
import sys
|
|
import unittest
|
|
|
|
# Don't insert before .
|
|
sys.path.insert(1, os.path.join('..', 'gst'))
|
|
|
|
import ltihooks
|
|
|
|
# Load GST and make sure we load it from the current build
|
|
sys.setdlopenflags(dl.RTLD_LAZY | dl.RTLD_GLOBAL)
|
|
|
|
path = os.path.abspath(os.path.join('..', 'gst'))
|
|
import gst
|
|
assert gst.__path__ != path, 'bad path'
|
|
|
|
try:
|
|
import gst.interfaces
|
|
assert os.path.basename(gst.interfaces.__file__) != path, 'bad path'
|
|
except ImportError:
|
|
pass
|
|
|
|
try:
|
|
import gst.play
|
|
assert os.path.basename(gst.play.__file__) != path, 'bad path'
|
|
except ImportError:
|
|
pass
|
|
|
|
|
|
|