From 5c9378ac5e86aa9700b4c941fa70bc036329e766 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sat, 31 Jul 2021 20:41:38 +0100 Subject: [PATCH] [Tests] Fix incorrent twisted defer import With the release Twisted 21.7.0 there was an import error running the tests due to defer incorrectly imported via twisted.internet.tasks module. --- deluge/tests/test_torrent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/tests/test_torrent.py b/deluge/tests/test_torrent.py index 8e3eb4b1f..960a22aed 100644 --- a/deluge/tests/test_torrent.py +++ b/deluge/tests/test_torrent.py @@ -12,8 +12,8 @@ import time from base64 import b64encode import mock -from twisted.internet import reactor -from twisted.internet.task import defer, deferLater +from twisted.internet import defer, reactor +from twisted.internet.task import deferLater from twisted.trial import unittest import deluge.component as component