[Tests] Fix erroneous windows line endings in test state file
This commit is contained in:
parent
fffc6ab7d7
commit
dbf3495c4e
|
@ -3,3 +3,4 @@
|
||||||
.gitignore export-ignore
|
.gitignore export-ignore
|
||||||
*.py diff=python
|
*.py diff=python
|
||||||
ext-all.js diff=minjs
|
ext-all.js diff=minjs
|
||||||
|
*.state -merge -text
|
||||||
|
|
|
@ -12,11 +12,9 @@ from unittest import mock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from twisted.internet import defer, task
|
from twisted.internet import defer, task
|
||||||
from twisted.trial import unittest
|
|
||||||
|
|
||||||
from deluge import component
|
from deluge import component
|
||||||
from deluge.bencode import bencode
|
from deluge.bencode import bencode
|
||||||
from deluge.common import windows_check
|
|
||||||
from deluge.core.core import Core
|
from deluge.core.core import Core
|
||||||
from deluge.core.rpcserver import RPCServer
|
from deluge.core.rpcserver import RPCServer
|
||||||
from deluge.error import InvalidTorrentError
|
from deluge.error import InvalidTorrentError
|
||||||
|
@ -141,10 +139,6 @@ class TorrentmanagerTestCase(BaseTestCase):
|
||||||
common.get_test_data_file('utf8_filename_torrents.state'),
|
common.get_test_data_file('utf8_filename_torrents.state'),
|
||||||
os.path.join(self.config_dir, 'state', 'torrents.state'),
|
os.path.join(self.config_dir, 'state', 'torrents.state'),
|
||||||
)
|
)
|
||||||
if windows_check():
|
|
||||||
raise unittest.SkipTest(
|
|
||||||
'Windows ModuleNotFoundError due to Linux line ending'
|
|
||||||
)
|
|
||||||
|
|
||||||
state = self.tm.open_state()
|
state = self.tm.open_state()
|
||||||
self.assertEqual(len(state.torrents), 1)
|
self.assertEqual(len(state.torrents), 1)
|
||||||
|
|
Loading…
Reference in New Issue