diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-13 10:29:52 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-13 11:43:59 +0200 |
| commit | 35285e0c88c0652e602a91e03c4a2bf6b493d7c6 (patch) | |
| tree | f4a60daac20b220384d2981b08e7c102f24e8d6d /sources/shiboken6/tests/samplebinding/python_thread_test.py | |
| parent | e9bf3bda62590a42377d21ae0e5646f5401f982a (diff) | |
Use f-strings in tests
Change-Id: I52f92326fdd903078cce5b6408d96d742bfa42b8
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/tests/samplebinding/python_thread_test.py')
| -rw-r--r-- | sources/shiboken6/tests/samplebinding/python_thread_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken6/tests/samplebinding/python_thread_test.py b/sources/shiboken6/tests/samplebinding/python_thread_test.py index ca0508182..7b5b773e8 100644 --- a/sources/shiboken6/tests/samplebinding/python_thread_test.py +++ b/sources/shiboken6/tests/samplebinding/python_thread_test.py @@ -64,7 +64,7 @@ class Producer(threading.Thread): value = int(random()*10) % 10 self.bucket.push(value) self.production_list.append(value) - logging.debug('PRODUCER - pushed %d' % value) + logging.debug(f'PRODUCER - pushed {value}') self.runs += 1 #self.msleep(5) time.sleep(0.01) @@ -85,7 +85,7 @@ class Consumer(threading.Thread): if not self.bucket.empty(): value = self.bucket.pop() self.consumption_list.append(value) - logging.debug('CONSUMER - got %d' % value) + logging.debug(f'CONSUMER - got {value}') self.runs += 1 else: logging.debug('CONSUMER - empty bucket') |
