Skip to content

Commit

Permalink
Fix Python2.6 CI failures due to changed twisted.trial.unittest.TestC…
Browse files Browse the repository at this point in the history
…ase API.
  • Loading branch information
isislovecruft committed Nov 19, 2013
1 parent 0f76862 commit b5b5fe2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/bridgedb/test/test_persistentSaveAndLoad.py
Expand Up @@ -51,7 +51,9 @@ def setUp(self):
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)
Expand Down

0 comments on commit b5b5fe2

Please sign in to comment.