diff options
author | Thibault Saunier <tsaunier@gnome.org> | 2016-02-26 15:19:51 +0100 |
---|---|---|
committer | Thibault Saunier <tsaunier@gnome.org> | 2016-02-26 15:19:51 +0100 |
commit | 75e1e355c5f2add6fb3bb60c72b5b05c01dd3481 (patch) | |
tree | 92aa5b6af9a303b8c3b2c5d3c911e377ceb0e1d2 | |
parent | 0a9e73d20438d0d4a9a122d27466bdfdbcbfb1b6 (diff) |
validateelements: Make FLOAT as numeric values
-rw-r--r-- | testsuites/validateelements.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/testsuites/validateelements.py b/testsuites/validateelements.py index 9196048..801f3f1 100644 --- a/testsuites/validateelements.py +++ b/testsuites/validateelements.py @@ -24,8 +24,12 @@ The GstValidate default testsuite """ -from gi.repository import Gst -from gi.repository import GObject +import gi + +gi.require_version("Gst", "1.0") + +from gi.repository import Gst # noqa +from gi.repository import GObject # noqa TEST_MANAGER = "validate" @@ -34,7 +38,8 @@ def pspec_is_numeric(prop): return prop.value_type in [GObject.TYPE_INT, GObject.TYPE_INT64, GObject.TYPE_UINT, GObject.TYPE_UINT64, GObject.TYPE_LONG, GObject.TYPE_ULONG, - GObject.TYPE_DOUBLE] + GObject.TYPE_DOUBLE, + GObject.TYPE_FLOAT] def get_pipe_and_populate(test_manager, klass, fname, prop, loop): |