summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-08-03 20:40:18 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-08-03 20:40:18 (GMT)
commite861365dab493b4cc418cee18749d6e15494a0e5 (patch)
tree7bcecc0fd41a64f95c19e9bcc7de92cb20c0f166 /Lib/test
parent84bb9d8dc463eaa3e38080e4ee6fe3d150b3cb1b (diff)
downloadcpython-e861365dab493b4cc418cee18749d6e15494a0e5.zip
cpython-e861365dab493b4cc418cee18749d6e15494a0e5.tar.gz
cpython-e861365dab493b4cc418cee18749d6e15494a0e5.tar.bz2
Don't use any characters C doesn't guarantee are safe for text-mode files.
This should stop the bizarre translations Jack was getting from Mac CVS.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_quopri.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/Lib/test/test_quopri.py b/Lib/test/test_quopri.py
index f79eb4e..348f4bc 100644
--- a/Lib/test/test_quopri.py
+++ b/Lib/test/test_quopri.py
@@ -28,17 +28,17 @@ characters... have fun!
DECSAMPLE = "Here's a bunch of special \n" + \
"""\
-¡¢£¤¥¦§¨©
-ª«¬­®¯°±²³
-´µ¶·¸¹º»¼½¾
-¿ÀÁÂÃÄÅÆ
-ÇÈÉÊËÌÍÎÏ
-ÐÑÒÓÔÕÖ×
-ØÙÚÛÜÝÞß
-àáâãäåæç
-èéêëìíîï
-ðñòóôõö÷
-øùúûüýþÿ
+\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9
+\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3
+\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe
+\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6
+\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf
+\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7
+\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf
+\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7
+\xe8\xe9\xea\xeb\xec\xed\xee\xef
+\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7
+\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff
characters... have fun!
"""
@@ -68,7 +68,7 @@ class QuopriTestCase(unittest.TestCase):
('hello ', 'hello=20'),
('hello\t', 'hello=09'),
# Some long lines. First, a single line of 108 characters
- ('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxØÙÚÛÜÝÞßxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
+ ('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\xd8\xd9\xda\xdb\xdc\xdd\xde\xdfxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'''xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=D8=D9=DA=DB=DC=DD=DE=DFx=
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'''),
# A line of exactly 76 characters, no soft line break should be needed