diff options
author | Robey Pointer <robey@lag.net> | 2008-02-17 21:12:29 -0800 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2008-02-17 21:12:29 -0800 |
commit | 9e67c45053cf330e4122f18f60f9257214231d3d (patch) | |
tree | be03ea5435cc0911d2fa41c1157e5eddf6507ef5 /tests/test_buffered_pipe.py | |
parent | cb3a0a4c3d2ee86c2b8d065be8f294a974a3c704 (diff) |
[project @ robey@lag.net-20080218051229-xtylb1poe246k2ci]
merge patch from Dwayne Litzenberger to fix unit tests on python 2.3.
Diffstat (limited to 'tests/test_buffered_pipe.py')
-rw-r--r-- | tests/test_buffered_pipe.py | 3 |
1 files changed, 3 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()) |