X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gnuradio-core%2Fsrc%2Fpython%2Fgnuradio%2Fgr%2Fqa_nlog10.py;h=4dca67b22862be75f500197e930f577ef310d1b1;hb=ea29b08aeb54227e6628f655ccfdb96fe4d8c378;hp=d24cd2bfc53bbcb71da06c2e6186a80ccbc5542a;hpb=09a1e803a9e6587c78d20cdf16891e5295874668;p=debian%2Fgnuradio diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_nlog10.py b/gnuradio-core/src/python/gnuradio/gr/qa_nlog10.py index d24cd2bf..4dca67b2 100755 --- a/gnuradio-core/src/python/gnuradio/gr/qa_nlog10.py +++ b/gnuradio-core/src/python/gnuradio/gr/qa_nlog10.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright 2005 Free Software Foundation, Inc. +# Copyright 2005,2007 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -25,10 +25,10 @@ from gnuradio import gr, gr_unittest class test_single_pole_iir(gr_unittest.TestCase): def setUp (self): - self.fg = gr.flow_graph () + self.tb = gr.top_block () def tearDown (self): - self.fg = None + self.tb = None def test_001(self): src_data = (-10, 0, 10, 100, 1000, 10000, 100000) @@ -36,8 +36,8 @@ class test_single_pole_iir(gr_unittest.TestCase): src = gr.vector_source_f(src_data) op = gr.nlog10_ff(10) dst = gr.vector_sink_f() - self.fg.connect (src, op, dst) - self.fg.run() + self.tb.connect (src, op, dst) + self.tb.run() result_data = dst.data() self.assertFloatTuplesAlmostEqual (expected_result, result_data)