[Tests] Fix erroneous windows line endings in test state file

This commit is contained in:
Chase Sterling 2022-01-25 12:49:53 -05:00 committed by Calum Lind
parent fffc6ab7d7
commit dbf3495c4e
No known key found for this signature in database
GPG Key ID: 90597A687B836BA3
2 changed files with 1 additions and 6 deletions

1
.gitattributes vendored
View File

@ -3,3 +3,4 @@
.gitignore export-ignore
*.py diff=python
ext-all.js diff=minjs
*.state -merge -text

View File

@ -12,11 +12,9 @@ from unittest import mock
import pytest
from twisted.internet import defer, task
from twisted.trial import unittest
from deluge import component
from deluge.bencode import bencode
from deluge.common import windows_check
from deluge.core.core import Core
from deluge.core.rpcserver import RPCServer
from deluge.error import InvalidTorrentError
@ -141,10 +139,6 @@ class TorrentmanagerTestCase(BaseTestCase):
common.get_test_data_file('utf8_filename_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()
self.assertEqual(len(state.torrents), 1)