From bf4ea0ecaf96adaed3cd38459805bdf4412af0c9 Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Sun, 26 Jul 2015 14:10:41 +0200 Subject: [PATCH] MAINT: fix runtests.py issue when run with ``python -OO`` --- runtests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runtests.py b/runtests.py index b46c92736..322bd8ddb 100644 --- a/runtests.py +++ b/runtests.py @@ -28,8 +28,11 @@ '/usr/local/lib/ccache', '/usr/local/lib/f90cache'] # --------------------------------------------------------------------- +if __doc__ is None: + __doc__ = "Run without -OO if you want usage info" +else: + __doc__ = __doc__.format(**globals()) -__doc__ = __doc__.format(**globals()) import sys import os