commit b5b5fe2e2365ecce5627f652f441a25c590ef245 Author: Isis Lovecruft isis@torproject.org Date: Tue Nov 19 03:37:48 2013 +0000
Fix Python2.6 CI failures due to changed twisted.trial.unittest.TestCase API. --- lib/bridgedb/test/test_persistentSaveAndLoad.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/bridgedb/test/test_persistentSaveAndLoad.py b/lib/bridgedb/test/test_persistentSaveAndLoad.py index 10467ce..73d0f34 100644 --- a/lib/bridgedb/test/test_persistentSaveAndLoad.py +++ b/lib/bridgedb/test/test_persistentSaveAndLoad.py @@ -51,7 +51,9 @@ class StateSaveAndLoadTests(unittest.TestCase): self.state.statefile = os.path.abspath('bridgedb.state')
def loadedStateAssertions(self, loadedState): - self.assertIsNotNone(loadedState) + # For some reason, twisted.trial.unittest.TestCase in Python2.6 + # doesn't have an 'assertIsNotNone' attribute... + self.assertTrue(loadedState is not None) self.assertIsInstance(loadedState, persistent.State) self.assertNotIdentical(self.state, loadedState) self.assertNotEqual(self.state, loadedState)