From 512f2ddcca04a2da1f179616b74eb571180dbc53 Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Fri, 24 Aug 2012 12:57:35 +0200 Subject: [PATCH] declare +IGNORE_WHITESPACE, despide the NORMALIZE_WHITESPACE optionflag in test_doctests module --- src/icalendar/prop.py | 1 + src/icalendar/tests/test_icalendar.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/icalendar/prop.py b/src/icalendar/prop.py index 0b089cb..c592b36 100644 --- a/src/icalendar/prop.py +++ b/src/icalendar/prop.py @@ -986,6 +986,7 @@ class vRecur(CaselessDict): >>> p = 'FREQ=YEARLY;INTERVAL=2;BYMONTH=1;BYDAY=-SU;BYHOUR=8,9;BYMINUTE=30' >>> r = vRecur.from_ical(p) >>> r + ... # doctest: +NORMALIZE_WHITESPACE {'BYHOUR': [8, 9], 'BYDAY': ['-SU'], 'BYMINUTE': [30], 'BYMONTH': [1], 'FREQ': ['YEARLY'], 'INTERVAL': [2]} diff --git a/src/icalendar/tests/test_icalendar.py b/src/icalendar/tests/test_icalendar.py index 13a43f0..dd41849 100644 --- a/src/icalendar/tests/test_icalendar.py +++ b/src/icalendar/tests/test_icalendar.py @@ -32,6 +32,7 @@ from icalendar import ( prop, ) +OPTIONFLAGS = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS class FuckYouTests(unittest.TestCase): def XtestBla(self): @@ -85,6 +86,6 @@ def load_tests(loader=None, tests=None, pattern=None): 'small.txt', 'multiple.txt', 'recurrence.txt']: filename = os.path.abspath(os.path.join(current_dir, docfile)) suite.addTest(doctest.DocFileSuite(docfile, - optionflags=doctest.ELLIPSIS, + optionflags=OPTIONFLAGS, globs={'__file__': filename})) - return suite \ No newline at end of file + return suite