From: Jason Kirtland Date: Mon, 28 Jan 2008 19:52:04 +0000 (+0000) Subject: - Fixed little think-o in fails_if X-Git-Tag: rel_0_4_3~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ed5faff265adbda5b4ceae333b09df97e316108;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - Fixed little think-o in fails_if --- 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):