mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Fix get_free_space test
This commit is contained in:
parent
a8c79d1954
commit
2731d5be17
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ class CoreTestCase(unittest.TestCase):
|
|||
|
||||
def test_get_free_space(self):
|
||||
space = self.core.get_free_space(".")
|
||||
self.assertTrue(type(space) == int)
|
||||
self.assertTrue(type(space) in (int, long))
|
||||
self.assertTrue(space >= 0)
|
||||
self.assertRaises(deluge.error.InvalidPathError, self.core.get_free_space, "/someinvalidpath")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue