git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85c1dc9
)
Add custom implementations of TestCase.assertIs and TestCase.assertIsNot, for Python2.6.
author
Jelmer Vernooij
<jelmer@samba.org>
Tue, 27 Jan 2015 02:40:34 +0000
(
03:40
+0100)
committer
Andrew Bartlett
<abartlet@samba.org>
Fri, 6 Mar 2015 03:41:48 +0000
(
04:41
+0100)
Change-Id: I3b806abdaf9540b7c39c961c179c2d2b15d327fe
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/__init__.py
patch
|
blob
|
history
diff --git
a/python/samba/tests/__init__.py
b/python/samba/tests/__init__.py
index d85260c3066255c07ff69d151fc1224716b1cd80..86ec3dff138654b9069fc0f816b34e4831aa823b 100644
(file)
--- a/
python/samba/tests/__init__.py
+++ b/
python/samba/tests/__init__.py
@@
-57,6
+57,14
@@
class TestCase(unittest.TestCase):
def skipTest(self, reason):
raise SkipTest(reason)
+ if not getattr(unittest.TestCase, "assertIs", None):
+ def assertIs(self, a, b):
+ self.assertTrue(a is b)
+
+ if not getattr(unittest.TestCase, "assertIsNot", None):
+ def assertIsNot(self, a, b):
+ self.assertTrue(a is not b)
+
class LdbTestCase(unittest.TestCase):
"""Trivial test case for running tests against a LDB."""