diff options
Diffstat (limited to 'tools/testing/selftests/tc-testing/tdc.py')
-rwxr-xr-x | tools/testing/selftests/tc-testing/tdc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/tc-testing/tdc.py b/tools/testing/selftests/tc-testing/tdc.py index 6c220bc26d9f..7b50775abaf6 100755 --- a/tools/testing/selftests/tc-testing/tdc.py +++ b/tools/testing/selftests/tc-testing/tdc.py | |||
@@ -445,7 +445,7 @@ def generate_case_ids(alltests): | |||
445 | for c in alltests: | 445 | for c in alltests: |
446 | if (c["id"] == ""): | 446 | if (c["id"] == ""): |
447 | while True: | 447 | while True: |
448 | newid = str('%04x' % random.randrange(16**4)) | 448 | newid = str('{:04x}'.format(random.randrange(16**4))) |
449 | if (does_id_exist(alltests, newid)): | 449 | if (does_id_exist(alltests, newid)): |
450 | continue | 450 | continue |
451 | else: | 451 | else: |