forked from premiere/premiere-libtorrent
fix python binding for torrent_info::creation_date()
This commit is contained in:
parent
0b8c550b9c
commit
4a71cc5d89
|
@ -1,3 +1,5 @@
|
|||
* fix python binding for torrent_info::creation_date()
|
||||
|
||||
1.1.10 release
|
||||
|
||||
* fix issue in udp_socket with unusual socket failure
|
||||
|
|
|
@ -137,5 +137,6 @@ void bind_datetime()
|
|||
>();
|
||||
|
||||
optional_to_python<boost::posix_time::ptime>();
|
||||
optional_to_python<std::time_t>();
|
||||
}
|
||||
|
||||
|
|
|
@ -180,6 +180,7 @@ class test_torrent_info(unittest.TestCase):
|
|||
self.assertEqual(f.file_name(0), 'test_torrent')
|
||||
self.assertEqual(f.file_size(0), 1234)
|
||||
self.assertEqual(info.total_size(), 1234)
|
||||
self.assertEqual(info.creation_date(), None)
|
||||
|
||||
def test_metadata(self):
|
||||
ti = lt.torrent_info('base.torrent');
|
||||
|
|
Loading…
Reference in New Issue