summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorThomas Waldmann <tw AT waldmann-edv DOT de>2011-03-27 00:30:56 +0100
committerThomas Waldmann <tw AT waldmann-edv DOT de>2011-03-27 00:30:56 +0100
commit6d56abca3bb1a09184b48c06c9575fd4c3f3f519 (patch)
tree83c4c61a69706226d084668c3c538211d009fdc3 /test
parentef84b8ffb253b0b3cd2ba2f5ca6b140ab5f04ba8 (diff)
downloadargparse-6d56abca3bb1a09184b48c06c9575fd4c3f3f519.tar.gz
make tests work on python 2.4
Diffstat (limited to 'test')
-rw-r--r--test/test_argparse.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_argparse.py b/test/test_argparse.py
index dde6d16..3b163c2 100644
--- a/test/test_argparse.py
+++ b/test/test_argparse.py
@@ -2221,7 +2221,8 @@ class TestMutuallyExclusiveGroupErrors(TestCase):
--soup
--nuts
'''
- self.assertEqual(parser.format_help(), textwrap.dedent(expected))
+ # note: .rstrip(' ') fixes different behaviour of py 2.4 textwrap.dedent
+ self.assertEqual(parser.format_help(), textwrap.dedent(expected).rstrip(' '))
class MEMixin(object):