mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 21:43:09 +00:00
fail* methods have been removed in 3.12 (deprecated since 3.1!)
This commit is contained in:
parent
4b75b7c6e8
commit
ffe0979ad5
@ -1352,6 +1352,14 @@ class _TestCaseMixin(object):
|
||||
def assertRaises(self, *a, **kw):
|
||||
return self._dummyCase.assertRaises(*a, **kw)
|
||||
|
||||
def failUnless(self, *args, **kwargs):
|
||||
"""Backwards compatibility method."""
|
||||
self.assertTrue(*args, **kwargs)
|
||||
|
||||
def failIf(self, *args, **kwargs):
|
||||
"""Backwards compatibility method."""
|
||||
self.assertFalse(*args, **kwargs)
|
||||
|
||||
|
||||
class SyncTestCase(_TestCaseMixin, TestCase):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user