diff options
Diffstat (limited to 'gnuradio-runtime/python/pmt/qa_pmt_to_python.py')
-rw-r--r-- | gnuradio-runtime/python/pmt/qa_pmt_to_python.py | 5 |
1 files changed, 2 insertions, 3 deletions
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() |