Commit 87cc0c32 authored by Tim Peters's avatar Tim Peters

Whitespace normalization, plus:

+ test_quopri.py relied on significant trailing spaces.  Fixed.
+ test_dircache.py (still) doesn't work on Windows (directory mtime on
  Windows doesn't work like it does on Unix).
parent 3332778f
......@@ -5,7 +5,7 @@ from cStringIO import StringIO
from quopri import *
ENCSAMPLE = """\
Here's a bunch of special=20
......@@ -25,8 +25,8 @@ characters... have fun!
"""
# First line ends with a space
DECSAMPLE = """\
Here's a bunch of special
DECSAMPLE = "Here's a bunch of special \n" + \
"""\
......@@ -44,7 +44,7 @@ characters... have fun!
"""
class QuopriTestCase(unittest.TestCase):
# Each entry is a tuple of (plaintext, encoded string). These strings are
# used in the "quotetabs=0" tests.
......@@ -135,5 +135,5 @@ zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz''')
self.assert_(encodestring(p, quotetabs=1) == e)
self.assert_(decodestring(e) == p)
test_support.run_unittest(QuopriTestCase)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment