summaryrefslogtreecommitdiff
path: root/gr-blocks/python/blocks/qa_pack_k_bits.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-12-18 16:42:48 -0800
committerMarcus Müller <marcus@hostalia.de>2018-12-19 17:49:09 +0100
commit092aff8628741b38b1e4000370d219b82555169d (patch)
tree1d7cca45216df27cc4224d3b83cacb52021c3ae1 /gr-blocks/python/blocks/qa_pack_k_bits.py
parentb1e2fdc6e95cf3d8eb76c9f78b976cd1b30d572c (diff)
qa: Use random.seed(0) everywhere import random is used
This affects all Python-based unit tests which use the Python random module. If they do, this change adds random.seed(0) to every setUp() call, so that all QA runs are reproducible.
Diffstat (limited to 'gr-blocks/python/blocks/qa_pack_k_bits.py')
-rw-r--r--gr-blocks/python/blocks/qa_pack_k_bits.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gr-blocks/python/blocks/qa_pack_k_bits.py b/gr-blocks/python/blocks/qa_pack_k_bits.py
index 28285845b3..c82c025306 100644
--- a/gr-blocks/python/blocks/qa_pack_k_bits.py
+++ b/gr-blocks/python/blocks/qa_pack_k_bits.py
@@ -28,6 +28,7 @@ from gnuradio import gr, gr_unittest, blocks
class test_pack(gr_unittest.TestCase):
def setUp(self):
+ random.seed(0)
self.tb = gr.top_block()
def tearDown(self):