From f9dd0bf46c1f85e2053e31c9f45f66db4f0cb2e3 Mon Sep 17 00:00:00 2001 From: Ondrej Nosek Date: May 05 2020 12:48:04 +0000 Subject: Disable test method's docstring in nosetests list Signed-off-by: Ondrej Nosek --- diff --git a/test/utils.py b/test/utils.py index 3899412..86a344a 100644 --- a/test/utils.py +++ b/test/utils.py @@ -28,6 +28,14 @@ except ImportError: import unittest +# to prevent printing the method's docstring in the nosetests list +def shortDescription(self): + return None + + +unittest.TestCase.shortDescription = shortDescription + + class Assertions(object): def get_exists_method(self, search_dir=None):