From a41f950d09cf2b4377eccc9b0537b9f6cdc1165f Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Wed, 26 Jan 2022 00:02:38 -0500 Subject: [PATCH] [Tests] Enable more tests that now work on Windows --- deluge/tests/daemon_base.py | 4 ---- deluge/tests/test_torrent.py | 8 +------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/deluge/tests/daemon_base.py b/deluge/tests/daemon_base.py index badc93768..5d1d3f5f6 100644 --- a/deluge/tests/daemon_base.py +++ b/deluge/tests/daemon_base.py @@ -11,7 +11,6 @@ from twisted.internet import defer from twisted.internet.error import CannotListenError import deluge.component as component -from deluge.common import windows_check from . import common @@ -20,9 +19,6 @@ from . import common class DaemonBase: basetemp = None - if windows_check(): - skip = 'windows cant start_core not enough arguments for format string' - @pytest.fixture def get_pytest_basetemp(self, request): self.basetemp = request.config.option.basetemp diff --git a/deluge/tests/test_torrent.py b/deluge/tests/test_torrent.py index 8d22403fc..99069f9c9 100644 --- a/deluge/tests/test_torrent.py +++ b/deluge/tests/test_torrent.py @@ -17,7 +17,7 @@ import deluge.component as component import deluge.core.torrent import deluge.tests.common as common from deluge._libtorrent import lt -from deluge.common import VersionSplit, utf8_encode_structure, windows_check +from deluge.common import VersionSplit, utf8_encode_structure from deluge.core.core import Core from deluge.core.rpcserver import RPCServer from deluge.core.torrent import Torrent @@ -173,8 +173,6 @@ class TorrentTestCase(BaseTestCase): # self.print_priority_list(priorities) def test_torrent_error_data_missing(self): - if windows_check(): - raise unittest.SkipTest('unexpected end of file in bencoded string') options = {'seed_mode': True} filename = common.get_test_data_file('test_torrent.file.torrent') with open(filename, 'rb') as _file: @@ -191,8 +189,6 @@ class TorrentTestCase(BaseTestCase): self.assert_state(torrent, 'Error') def test_torrent_error_resume_original_state(self): - if windows_check(): - raise unittest.SkipTest('unexpected end of file in bencoded string') options = {'seed_mode': True, 'add_paused': True} filename = common.get_test_data_file('test_torrent.file.torrent') with open(filename, 'rb') as _file: @@ -212,8 +208,6 @@ class TorrentTestCase(BaseTestCase): torrent.force_recheck() def test_torrent_error_resume_data_unaltered(self): - if windows_check(): - raise unittest.SkipTest('unexpected end of file in bencoded string') if VersionSplit(lt.__version__) >= VersionSplit('1.2.0.0'): raise unittest.SkipTest('Test not working as expected on lt 1.2 or greater')