Fix get_free_space test

This commit is contained in:
Andrew Resch 2009-07-25 01:49:05 +00:00
parent a8c79d1954
commit 2731d5be17

View File

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