From: Brian Warner Date: Tue, 31 Mar 2015 16:30:17 +0000 (-0700) Subject: test_ftp: fix comparison against integer X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=452d30647899defad10da2855e4d5882cdfccfd5;p=tahoe-lafs%2Ftahoe-lafs.git test_ftp: fix comparison against integer --- diff --git a/src/allmydata/test/test_ftp.py b/src/allmydata/test/test_ftp.py index c98a3209..d3e3082b 100644 --- a/src/allmydata/test/test_ftp.py +++ b/src/allmydata/test/test_ftp.py @@ -79,6 +79,11 @@ class Handler(GridTestMixin, ReallyEqualMixin, unittest.TestCase): actual_list, expected_list)) for (a, b) in zip(actual_list, expected_list): (name, meta) = a + # convert meta.permissions to int for comparison. When we run + # against many (but not all) versions of Twisted, this is a + # filepath.Permissions object, not an int + meta = list(meta) + meta[2] = meta[2] & 0xffffffff (expected_name, expected_meta) = b self.failUnlessReallyEqual(name, expected_name) self.failUnlessReallyEqual(meta, expected_meta)