diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2024-09-06 21:20:55 +0200 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2024-09-06 22:02:50 +0200 |
commit | 9d802b2a912aa0e459cf9ad0e9ec2fb51832b59e (patch) | |
tree | 1a019d44e4834f33e64253a3f1eda4b3cb3433f7 /requirements.txt | |
parent | [Console] endwin() not needed when using wrapper (diff) | |
download | deluge-9d802b2a912aa0e459cf9ad0e9ec2fb51832b59e.tar.xz deluge-9d802b2a912aa0e459cf9ad0e9ec2fb51832b59e.zip |
[Tests] Fix missing __qualname__ for mock callback
test_pop_alerts raised the following error:
File "/home/runner/work/deluge/deluge/deluge/core/alertmanager.py", line 177, in handle_alerts
handler=handler.__qualname__,
File "lib/python3.10/unittest/mock.py", line 645, in __getattr__
raise AttributeError(name)
AttributeError: __qualname__
Mocks don't generate dunder methods like `__qualname__` attribute so
we need to manually specify it.
Diffstat (limited to 'requirements.txt')
-rw-r--r-- | requirements.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/requirements.txt b/requirements.txt index 3b2a4080d..a26ec758d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ libtorrent -twisted[tls]>=17.1; sys_platform != 'win32' -twisted[tls]<23,>=17.1; sys_platform == 'win32' +twisted[tls]>=17.1 rencode pyopenssl pyxdg |