Browse code

use assertEqual to make pylint happy

Hanno Böck authored on22/12/2019 12:35:29
Showing1 changed files
... ...
@@ -41,7 +41,8 @@ class TestFreewvsData(unittest.TestCase):
41 41
             refclean = sorted(refclean.split("\n"))
42 42
             if refclean != fwclean:
43 43
                 print("\n".join(difflib.ndiff(refclean, fwclean)))
44
-                raise Exception("Output in %s does not match" % bdir)
44
+            self.assertEqual(refclean, fwclean,
45
+                             msg="Output in %s does not match" % bdir)
45 46
 
46 47
 
47 48
 if __name__ == '__main__':