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 /setup.py | |
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 'setup.py')
-rwxr-xr-x | setup.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -538,8 +538,7 @@ _package_data['deluge.ui.gtk3'] = ['glade/*.ui'] setup_requires = ['setuptools', 'wheel'] install_requires = [ - "twisted[tls]>=17.1; sys_platform != 'win32'", - "twisted[tls]<23,>=17.1; sys_platform == 'win32'", + 'twisted[tls]>=17.1', # Add pyasn1 for setuptools workaround: # https://github.com/pypa/setuptools/issues/1510 'pyasn1', |