summaryrefslogtreecommitdiffstats
path: root/tests/tests_tqdm.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 15:59:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 15:59:52 +0000
commita2eb45dc71bcd8ec656e4357e66e674e2c3fa17e (patch)
tree6874a3d60e42c8c0fd8bf7b201806e1a2ca32c24 /tests/tests_tqdm.py
parentAdding upstream version 4.66.2. (diff)
downloadtqdm-a2eb45dc71bcd8ec656e4357e66e674e2c3fa17e.tar.xz
tqdm-a2eb45dc71bcd8ec656e4357e66e674e2c3fa17e.zip
Adding upstream version 4.66.4.upstream/4.66.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/tests_tqdm.py')
-rw-r--r--tests/tests_tqdm.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tests_tqdm.py b/tests/tests_tqdm.py
index d0ba14f..25644aa 100644
--- a/tests/tests_tqdm.py
+++ b/tests/tests_tqdm.py
@@ -107,7 +107,7 @@ def cpu_timify(t, timer=None):
class UnicodeIO(IOBase):
"""Unicode version of StringIO"""
def __init__(self, *args, **kwargs):
- super(UnicodeIO, self).__init__(*args, **kwargs)
+ super().__init__(*args, **kwargs)
self.encoding = 'U8' # io.StringIO supports unicode, but no encoding
self.text = ''
self.cursor = 0
@@ -342,7 +342,7 @@ def test_all_defaults():
class WriteTypeChecker(BytesIO):
"""File-like to assert the expected type is written"""
def __init__(self, expected_type):
- super(WriteTypeChecker, self).__init__()
+ super().__init__()
self.expected_type = expected_type
def write(self, s):
@@ -1095,7 +1095,7 @@ def test_custom_format():
"""Provides a `total_time` format parameter"""
@property
def format_dict(self):
- d = super(TqdmExtraFormat, self).format_dict
+ d = super().format_dict
total_time = d["elapsed"] * (d["total"] or 0) / max(d["n"], 1)
d.update(total_time=self.format_interval(total_time) + " in total")
return d