summaryrefslogtreecommitdiffstats
path: root/deluge/plugins/Stats/deluge_stats/tests/test_stats.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-12-10 11:13:08 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-12-10 11:13:08 +0000
commit9a5a4b27cb3c911f0c8ea622f183038b409de792 (patch)
treef16fe350773078608d57119ebe950c5d2793db46 /deluge/plugins/Stats/deluge_stats/tests/test_stats.py
parentReleasing debian version 2.1.2~dev0+20230918-1. (diff)
downloaddeluge-9a5a4b27cb3c911f0c8ea622f183038b409de792.tar.xz
deluge-9a5a4b27cb3c911f0c8ea622f183038b409de792.zip
Merging upstream version 2.1.2~dev0+20231127.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'deluge/plugins/Stats/deluge_stats/tests/test_stats.py')
-rw-r--r--deluge/plugins/Stats/deluge_stats/tests/test_stats.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/deluge/plugins/Stats/deluge_stats/tests/test_stats.py b/deluge/plugins/Stats/deluge_stats/tests/test_stats.py
index 4aefc50..d61cd46 100644
--- a/deluge/plugins/Stats/deluge_stats/tests/test_stats.py
+++ b/deluge/plugins/Stats/deluge_stats/tests/test_stats.py
@@ -58,7 +58,7 @@ class TestStatsPlugin:
@pytest.mark.gtkui
@defer.inlineCallbacks
- def test_write(self):
+ def test_write(self, tmp_path):
"""
writing to a file-like object; need this for webui.
@@ -102,5 +102,5 @@ class TestStatsPlugin:
file_like = FakeFile()
surface.write_to_png(file_like)
data = b''.join(file_like.data)
- with open('file_like.png', 'wb') as _file:
+ with open(tmp_path / 'file_like.png', 'wb') as _file:
_file.write(data)