summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/unittest/main.py')
-rw-r--r--Lib/unittest/main.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/unittest/main.py b/Lib/unittest/main.py
index 63fbd16..1db7978 100644
--- a/Lib/unittest/main.py
+++ b/Lib/unittest/main.py
@@ -159,10 +159,9 @@ class TestProgram(object):
for name, value in zip(('start', 'pattern', 'top'), args):
setattr(options, name, value)
+ self.failfast = options.failfast
if options.verbose:
self.verbosity = 2
- if options.failfast:
- self.failfast = True
start_dir = options.start
pattern = options.pattern