From 7a0948ba85758fba1cc3858ef99bfa600dcc7416 Mon Sep 17 00:00:00 2001 From: mormj <mormjb@gmail.com> Date: Fri, 30 Oct 2020 10:59:50 -0400 Subject: 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 --- gnuradio-runtime/python/pmt/qa_pmt_to_python.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gnuradio-runtime/python/pmt/qa_pmt_to_python.py') diff --git a/gnuradio-runtime/python/pmt/qa_pmt_to_python.py b/gnuradio-runtime/python/pmt/qa_pmt_to_python.py index 3fed489d8c..0d96cb800d 100644 --- a/gnuradio-runtime/python/pmt/qa_pmt_to_python.py +++ b/gnuradio-runtime/python/pmt/qa_pmt_to_python.py @@ -9,11 +9,11 @@ # - import unittest import pmt from pmt import pmt_to_python as pmt2py + class test_pmt_to_python(unittest.TestCase): def test_pmt_from_double(self): @@ -29,10 +29,9 @@ class test_pmt_to_python(unittest.TestCase): narr.imag[:] = np.random.uniform(size=N) uvector = pmt2py.numpy_to_uvector(narr) nparr = pmt2py.uvector_to_numpy(uvector) - self.assertTrue(nparr.dtype==narr.dtype) + self.assertTrue(nparr.dtype == narr.dtype) self.assertTrue(np.alltrue(nparr == narr)) - if __name__ == '__main__': unittest.main() -- cgit v1.2.3