CentOS python-2.6 fixes
* Need to replace functions which are not supported in python 2.6 Change-Id: I4308f7c43a60fde9d8538b53422ddc18499dc1f9 Signed-off-by: Luis Pabon <lpabon@redhat.com> Reviewed-on: http://review.gluster.org/6457 Reviewed-on: http://review.gluster.org/6484
This commit is contained in:
parent
caa8818eee
commit
5562d18fed
@ -794,11 +794,11 @@ class TestFsUtils(unittest.TestCase):
|
||||
|
||||
def test_get_filename_from_fd_err(self):
|
||||
result = fs.get_filename_from_fd("blah")
|
||||
self.assertIsNone(result)
|
||||
self.assertEqual(result,None)
|
||||
result = fs.get_filename_from_fd(-1000)
|
||||
self.assertIsNone(result)
|
||||
self.assertEqual(result,None)
|
||||
result = fs.get_filename_from_fd("blah", True)
|
||||
self.assertIsNone(result)
|
||||
self.assertEqual(result,None)
|
||||
|
||||
def test_static_var(self):
|
||||
@fs.static_var("counter", 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user