diff options
author | Cedric Ollivier <cedric.ollivier@orange.com> | 2021-06-03 06:16:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2021-06-03 06:16:49 +0000 |
commit | ec6921039af3b016eecc6e609f2554aea0f81e2c (patch) | |
tree | 4d2df62475e73a563e572180a13dec3b5e1b994e /xtesting/core/behaveframework.py | |
parent | 454bef238020d8ac0e986807f34dfc140362b629 (diff) | |
parent | a656fd764b0a608caaf198bfa9685a09a7eaca16 (diff) |
Merge "Drop six"
Diffstat (limited to 'xtesting/core/behaveframework.py')
-rw-r--r-- | xtesting/core/behaveframework.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/xtesting/core/behaveframework.py b/xtesting/core/behaveframework.py index dba556f4..e288fff8 100644 --- a/xtesting/core/behaveframework.py +++ b/xtesting/core/behaveframework.py @@ -16,7 +16,6 @@ import os import time import json -import six from behave.__main__ import main as behave_main @@ -92,10 +91,9 @@ class BehaveFramework(testcase.TestCase): config = ['--tags='+','.join(tags), '--junit', '--junit-directory={}'.format(self.res_dir), '--format=json', '--outfile={}'.format(self.json_file)] - if six.PY3: - html_file = os.path.join(self.res_dir, 'output.html') - config += ['--format=behave_html_formatter:HTMLFormatter', - '--outfile={}'.format(html_file)] + html_file = os.path.join(self.res_dir, 'output.html') + config += ['--format=behave_html_formatter:HTMLFormatter', + '--outfile={}'.format(html_file)] if kwargs.get("console", False): config += ['--format=pretty', '--outfile=-'] for feature in suites: |