diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-12-18 16:42:48 -0800 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2018-12-19 17:49:09 +0100 |
commit | 092aff8628741b38b1e4000370d219b82555169d (patch) | |
tree | 1d7cca45216df27cc4224d3b83cacb52021c3ae1 /gr-digital/python/digital/qa_constellation_receiver.py | |
parent | b1e2fdc6e95cf3d8eb76c9f78b976cd1b30d572c (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-digital/python/digital/qa_constellation_receiver.py')
-rw-r--r-- | gr-digital/python/digital/qa_constellation_receiver.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gr-digital/python/digital/qa_constellation_receiver.py b/gr-digital/python/digital/qa_constellation_receiver.py index 4850863fa5..ffe7355c32 100644 --- a/gr-digital/python/digital/qa_constellation_receiver.py +++ b/gr-digital/python/digital/qa_constellation_receiver.py @@ -89,6 +89,9 @@ class test_constellation_receiver(gr_unittest.TestCase): max_data_length = DATA_LENGTH * 6 max_num_samples = 1000 + def setUp(self): + random.seed(0) + def test_basic(self): """ Tests a bunch of different constellations by using generic |