merge patch from Dwayne Litzenberger to fix unit tests on python 2.3.
This commit is contained in:
parent
cb3a0a4c3d
commit
9e67c45053
|
@ -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())
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue