]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- Fixed little think-o in fails_if
authorJason Kirtland <jek@discorporate.us>
Mon, 28 Jan 2008 19:52:04 +0000 (19:52 +0000)
committerJason Kirtland <jek@discorporate.us>
Mon, 28 Jan 2008 19:52:04 +0000 (19:52 +0000)
test/testlib/testing.py

index cb10cf61a0d7c36dbaedc12d3eb3c59440dd85a5..bb3d2c3a5414ba0c3e57111204b48962701d861f 100644 (file)
@@ -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):