|
1 | 1 | import os |
2 | 2 | import string |
3 | | -import sys |
4 | 3 | import time |
5 | 4 | import uuid |
6 | 5 | import json |
@@ -41,7 +40,7 @@ def platform_label(): |
41 | 40 |
|
42 | 41 |
|
43 | 42 | def thread_tag(): |
44 | | - return "{0}-{1}".format(os.getpid(), threading.current_thread().name) |
| 43 | + return f"{os.getpid()}-{threading.current_thread().name}" |
45 | 44 |
|
46 | 45 |
|
47 | 46 | def host_tag(): |
@@ -245,13 +244,7 @@ def func_parameters(func, *args, **kwargs): |
245 | 244 | args_dict.pop(arg_spec.args[0], None) |
246 | 245 |
|
247 | 246 | if kwargs: |
248 | | - if sys.version_info < (3, 7): |
249 | | - # Sort alphabetically as old python versions does |
250 | | - # not preserve call order for kwargs. |
251 | | - arg_order.extend(sorted(list(kwargs.keys()))) |
252 | | - else: |
253 | | - # Keep py3.7 behaviour to preserve kwargs order |
254 | | - arg_order.extend(list(kwargs.keys())) |
| 247 | + arg_order.extend(list(kwargs.keys())) |
255 | 248 | parameters.update(kwargs) |
256 | 249 |
|
257 | 250 | parameters.update(args_dict) |
@@ -328,7 +321,11 @@ def get_testplan(): |
328 | 321 | file_path = os.environ.get("ALLURE_TESTPLAN_PATH") |
329 | 322 |
|
330 | 323 | if file_path and os.path.exists(file_path): |
| 324 | +<<<<<<< HEAD |
331 | 325 | with open(file_path, "r") as plan_file: |
| 326 | +======= |
| 327 | + with open(file_path) as plan_file: |
| 328 | +>>>>>>> 158bf87 (debt: Drop Python 3.6 support) |
332 | 329 | plan = json.load(plan_file) |
333 | 330 | planned_tests = plan.get("tests", []) |
334 | 331 |
|
|
0 commit comments