summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testlib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testlib.py b/testlib.py
index 4271839..462ed68 100644
--- a/testlib.py
+++ b/testlib.py
@@ -850,8 +850,8 @@ Examples:
el._testMethodName))
if descr in succTests:
obj.remove(el)
-
- if self.options.restart:
+ # take care, self.options may be None
+ if getattr(self.options, 'restart', False):
# retrieve succeeded tests from FILE_RESTART
try:
restartfile = open(FILE_RESTART, 'r')