summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tests/test_buffered_pipe.py3
-rw-r--r--tests/test_transport.py3
-rw-r--r--tests/test_util.py3
3 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_buffered_pipe.py b/tests/test_buffered_pipe.py
index bef8fb8a..f96edb8f 100644
--- a/tests/test_buffered_pipe.py
+++ b/tests/test_buffered_pipe.py
@@ -41,6 +41,9 @@ def close_thread(pipe):
class BufferedPipeTest (unittest.TestCase):
+ assertTrue = unittest.TestCase.failUnless # for Python 2.3 and below
+ assertFalse = unittest.TestCase.failIf # for Python 2.3 and below
+
def test_1_buffered_pipe(self):
p = BufferedPipe()
self.assert_(not p.read_ready())
diff --git a/tests/test_transport.py b/tests/test_transport.py
index 5ba4acc1..894c69d3 100644
--- a/tests/test_transport.py
+++ b/tests/test_transport.py
@@ -90,6 +90,9 @@ class NullServer (ServerInterface):
class TransportTest (unittest.TestCase):
+ assertTrue = unittest.TestCase.failUnless # for Python 2.3 and below
+ assertFalse = unittest.TestCase.failIf # for Python 2.3 and below
+
def setUp(self):
self.socks = LoopSocket()
self.sockc = LoopSocket()
diff --git a/tests/test_util.py b/tests/test_util.py
index 05fcc67c..bbfa8593 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -59,6 +59,9 @@ from paramiko import *
class UtilTest (unittest.TestCase):
+ assertTrue = unittest.TestCase.failUnless # for Python 2.3 and below
+ assertFalse = unittest.TestCase.failIf # for Python 2.3 and below
+
def setUp(self):
pass