diff options
| author | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2010-07-21 16:07:39 +0000 |
|---|---|---|
| committer | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2010-07-21 16:07:39 +0000 |
| commit | d65b808b2eaf0cfef786401b2c2b090003c7b012 (patch) | |
| tree | f9536cddad42fd9fbc0c4a3b6e7d380ac9d82058 /test/DocutilsTestSupport.py | |
| parent | 87dec672e120ea1d0fab5f71ba9347ded5ce30f8 (diff) | |
| download | docutils-d65b808b2eaf0cfef786401b2c2b090003c7b012.tar.gz | |
fixed issue with line endings causing test suite failures with snapshot downloads (fixes SF bug 3015675)
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6380 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'test/DocutilsTestSupport.py')
| -rw-r--r-- | test/DocutilsTestSupport.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/DocutilsTestSupport.py b/test/DocutilsTestSupport.py index 4cbd4e9a3..f85a8f0f7 100644 --- a/test/DocutilsTestSupport.py +++ b/test/DocutilsTestSupport.py @@ -203,6 +203,11 @@ class CustomTestCase(StandardTestCase): expected = expected.encode('raw_unicode_escape') if isinstance(output, unicode): output = output.encode('raw_unicode_escape') + # Normalize line endings: + if expected: + expected = '\n'.join(expected.splitlines()) + if output: + output = '\n'.join(output.splitlines()) try: self.assertEquals(output, expected) except AssertionError, error: |
