forked from premiere/premiere-libtorrent
make python test compatible with python 3
This commit is contained in:
parent
42b3fbe20a
commit
d03fdf77f4
|
@ -18,8 +18,6 @@ class test_create_torrent(unittest.TestCase):
|
||||||
content = lt.bencode(entry).strip()
|
content = lt.bencode(entry).strip()
|
||||||
with open('unordered.torrent', 'r') as f:
|
with open('unordered.torrent', 'r') as f:
|
||||||
file_content = f.read().strip()
|
file_content = f.read().strip()
|
||||||
print file_content
|
|
||||||
print content
|
|
||||||
self.assertEqual(content, file_content)
|
self.assertEqual(content, file_content)
|
||||||
|
|
||||||
class test_torrent_handle(unittest.TestCase):
|
class test_torrent_handle(unittest.TestCase):
|
||||||
|
|
Loading…
Reference in New Issue