summaryrefslogtreecommitdiff
path: root/gr-uhd/python/uhd
diff options
context:
space:
mode:
authormormj <mormjb@gmail.com>2020-10-30 10:59:50 -0400
committerMarcus Müller <marcus@hostalia.de>2020-10-30 17:52:53 +0100
commit7a0948ba85758fba1cc3858ef99bfa600dcc7416 (patch)
tree610d7f9d773a193562def6df2d4b50f1bb3b3f86 /gr-uhd/python/uhd
parent12192ee7d58de95ddca35a3e93bfc172bdb5c820 (diff)
qa: run autopep8 formatting on qa python files
find ./ -iname qa*.py | xargs autopep8 --in-place -a -a mostly formats whitespace and gets rid of trailing semicolons
Diffstat (limited to 'gr-uhd/python/uhd')
-rw-r--r--gr-uhd/python/uhd/qa_uhd.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/gr-uhd/python/uhd/qa_uhd.py b/gr-uhd/python/uhd/qa_uhd.py
index 0c9eee7a67..d87ab77c42 100644
--- a/gr-uhd/python/uhd/qa_uhd.py
+++ b/gr-uhd/python/uhd/qa_uhd.py
@@ -11,6 +11,7 @@
from gnuradio import gr, gr_unittest, uhd
+
class test_uhd(gr_unittest.TestCase):
def setUp(self):
@@ -19,18 +20,18 @@ class test_uhd(gr_unittest.TestCase):
def tearDown(self):
self.tb = None
- def test_000_nop (self):
+ def test_000_nop(self):
"""Just see if we can import the module...
They may not have a UHD device connected, etc. Don't try to run anything"""
pass
- def test_time_spec_t (self):
+ def test_time_spec_t(self):
seconds = 42.0
time = uhd.time_spec_t(seconds)
- twice_time = time + time;
- zero_time = time - time;
- self.assertEqual(time.get_real_secs() * 2, seconds * 2 )
- self.assertEqual(time.get_real_secs() - time.get_real_secs() , 0.0)
+ twice_time = time + time
+ zero_time = time - time
+ self.assertEqual(time.get_real_secs() * 2, seconds * 2)
+ self.assertEqual(time.get_real_secs() - time.get_real_secs(), 0.0)
def test_stream_args_channel_foo(self):
"""
@@ -46,5 +47,6 @@ class test_uhd(gr_unittest.TestCase):
self.assertEqual(sa.channels[0], 1)
self.assertEqual(sa.channels[1], 0)
+
if __name__ == '__main__':
gr_unittest.run(test_uhd)