fix python binding for torrent_info::creation_date()

This commit is contained in:
arvidn 2018-10-12 10:37:41 +02:00 committed by Arvid Norberg
parent 0b8c550b9c
commit 4a71cc5d89
3 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -137,5 +137,6 @@ void bind_datetime()
>();
optional_to_python<boost::posix_time::ptime>();
optional_to_python<std::time_t>();
}

View File

@ -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');