diff options
| author | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2012-05-01 08:34:41 +0000 |
|---|---|---|
| committer | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2012-05-01 08:34:41 +0000 |
| commit | 9685f6327fae73fabc6061fe63088022fa4f0c78 (patch) | |
| tree | 34b14a12cab0eeed62c39e822ea1d9d6efd59f3e /test/test_io.py | |
| parent | 5a40cb0a9646e80fcf52aca936440f0c22b81276 (diff) | |
| download | docutils-9685f6327fae73fabc6061fe63088022fa4f0c78.tar.gz | |
python 2.3 alias unittest.TestCase.assertTrue (possibly reverted on next release)
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7400 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'test/test_io.py')
| -rwxr-xr-x | test/test_io.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_io.py b/test/test_io.py index 6443abda4..fa77c749e 100755 --- a/test/test_io.py +++ b/test/test_io.py @@ -16,6 +16,10 @@ from docutils.error_reporting import locale_encoding class InputTests(unittest.TestCase): + # python 2.3 + if not hasattr(unittest.TestCase, "assertTrue"): + assertTrue = unittest.TestCase.failUnless + def test_bom(self): input = io.StringInput(source=b('\xef\xbb\xbf foo \xef\xbb\xbf bar'), encoding='utf8') |
