diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2014-09-19 13:38:46 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2014-09-19 13:40:39 +0100 |
commit | b8ab6e4083c3617445a6e23d2e2fdef336f2ddd2 (patch) | |
tree | f32aaf91a60328b13f573251ba3e240c3158f188 /deluge/tests/test_torrent.py | |
parent | 09c6e0cb5c94037f8dfd3bdd6811cebee01bcb11 (diff) | |
download | deluge-b8ab6e4083c3617445a6e23d2e2fdef336f2ddd2.tar.gz deluge-b8ab6e4083c3617445a6e23d2e2fdef336f2ddd2.tar.bz2 deluge-b8ab6e4083c3617445a6e23d2e2fdef336f2ddd2.zip |
[Tests] Replace module import with sys.modules
Diffstat (limited to 'deluge/tests/test_torrent.py')
-rw-r--r-- | deluge/tests/test_torrent.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deluge/tests/test_torrent.py b/deluge/tests/test_torrent.py index 699a04f92..5bfac30be 100644 --- a/deluge/tests/test_torrent.py +++ b/deluge/tests/test_torrent.py @@ -1,13 +1,13 @@ from __future__ import print_function import os +import sys from twisted.trial import unittest import deluge.component as component import deluge.core.torrent import deluge.tests.common as common -import test_torrent from deluge._libtorrent import lt from deluge.core.core import Core from deluge.core.rpcserver import RPCServer @@ -41,7 +41,7 @@ class TorrentTestCase(unittest.TestCase): def setUp(self): # Save component and set back on teardown self.original_component = deluge.core.torrent.component - deluge.core.torrent.component = test_torrent + deluge.core.torrent.component = sys.modules[__name__] self.setup_config() global rpcserver global core |