From 7ed5faff265adbda5b4ceae333b09df97e316108 Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Mon, 28 Jan 2008 19:52:04 +0000 Subject: [PATCH] - Fixed little think-o in fails_if --- test/testlib/testing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testlib/testing.py b/test/testlib/testing.py index cb10cf61a0..bb3d2c3a54 100644 --- a/test/testlib/testing.py +++ b/test/testlib/testing.py @@ -34,7 +34,7 @@ def fails_if(callable_): the test succeeds, a failure is reported. """ - docstring = getattr(callable_, '__doc__', callable_.__name__) + docstring = getattr(callable_, '__doc__', None) or callable_.__name__ description = docstring.split('\n')[0] def decorate(fn): -- 2.47.3