Update of /cvsroot/docstring/dps/test
In directory usw-pr-cvs1:/tmp/cvs-serv6959/dps/test
Modified Files:
DPSTestSupport.py
Log Message:
Unicode support
Index: DPSTestSupport.py
===================================================================
RCS file: /cvsroot/docstring/dps/test/DPSTestSupport.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** DPSTestSupport.py 22 Feb 2002 01:57:00 -0000 1.6
--- DPSTestSupport.py 7 Mar 2002 03:52:11 -0000 1.7
***************
*** 145,151 ****
--- 145,154 ----
def compareOutput(self, input, output, expected):
"""`input`, `output`, and `expected` should all be strings."""
+ output = output.encode('raw-unicode-escape')
+ expected = expected.encode('raw-unicode-escape')
try:
self.assertEquals('\n' + output, '\n' + expected)
except AssertionError:
+ input = input.encode('raw-unicode-escape')
print >>sys.stderr, '\n%s\ninput:' % (self,)
print >>sys.stderr, input
|