0b24db6
From f3fd518eade5ad24bd7d2574b2532f0f28278f41 Mon Sep 17 00:00:00 2001
0b24db6
From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= <jskarvad@redhat.com>
0b24db6
Date: Fri, 21 Feb 2020 18:20:56 +0100
0b24db6
Subject: [PATCH] test: fixed serial_to_parallel test
0b24db6
MIME-Version: 1.0
0b24db6
Content-Type: text/plain; charset=UTF-8
0b24db6
Content-Transfer-Encoding: 8bit
0b24db6
0b24db6
The serial_to_parallel function already has fixed division by
0b24db6
zero, thus it will not throw it.
0b24db6
0b24db6
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
0b24db6
---
0b24db6
 test/test_rftools.py | 1 -
0b24db6
 1 file changed, 1 deletion(-)
0b24db6
0b24db6
diff --git a/test/test_rftools.py b/test/test_rftools.py
0b24db6
index 76e79ef..96ce91a 100644
0b24db6
--- a/test/test_rftools.py
0b24db6
+++ b/test/test_rftools.py
0b24db6
@@ -77,7 +77,6 @@ def test_parallel_to_serial(self):
0b24db6
             complex(50, 10))
0b24db6
 
0b24db6
     def test_serial_to_parallel(self):
0b24db6
-        self.assertRaises(ZeroDivisionError, serial_to_parallel, 0)
0b24db6
         self.assertAlmostEqual(
0b24db6
             serial_to_parallel(complex(50, 10)),
0b24db6
             complex(52, 260))