deprecated session_settings API has been removed. remove it from the test

This commit is contained in:
arvidn 2016-11-03 20:36:11 -04:00 committed by Arvid Norberg
parent cf832c6130
commit 98549a7c13
1 changed files with 0 additions and 11 deletions

View File

@ -198,17 +198,6 @@ class test_session(unittest.TestCase):
except Exception as e:
print(e)
def test_deprecated_settings(self):
# this detects whether libtorrent was built with deprecated APIs
if hasattr(lt, 'version'):
s = lt.session({'enable_dht': False})
sett = lt.session_settings()
sett.num_want = 10;
s.set_settings(sett)
s.set_settings({'num_want': 33})
self.assertEqual(s.get_settings()['num_want'], 33)
def test_apply_settings(self):
s = lt.session({'enable_dht': False})