diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2021-06-12 22:31:55 +0200 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-06-19 19:46:17 -0400 |
commit | 2556a301718f4647b284c6b8ad57748064a3dad3 (patch) | |
tree | dc19709794963e77413ba6687b267c10c3fd08eb /gr-blocks/python | |
parent | e1b633a95047fce266e575cbc66a314d31c24491 (diff) |
testing: rm dependencies from disabled components in blocks/runtime tests
This included shifting of the PDU test from runtime to gr-pdu, and
making the tests that actually require blocks conditional on whether
there's going to be gr-blocks. Also, don't use gr-analog just because
you need data.
Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
Diffstat (limited to 'gr-blocks/python')
-rw-r--r-- | gr-blocks/python/blocks/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gr-blocks/python/blocks/__init__.py b/gr-blocks/python/blocks/__init__.py index 337380d819..4a3bc1ccaf 100644 --- a/gr-blocks/python/blocks/__init__.py +++ b/gr-blocks/python/blocks/__init__.py @@ -37,4 +37,8 @@ multiply_vii = multiply_ii multiply_vss = multiply_ss # Compatibility layer for transition to gr-pdu. Scheduled for removal in 3.11. -from .pdu_compatibility import * +# This can fail if we're not building PDU tools +try: + from .pdu_compatibility import * +except ImportError: + pass |