Update of /cvsroot/docstring/dps/test
In directory usw-pr-cvs1:/tmp/cvs-serv1761/dps/test
Modified Files:
DPSTestSupport.py
Log Message:
unicode fiddling
Index: DPSTestSupport.py
===================================================================
RCS file: /cvsroot/docstring/dps/test/DPSTestSupport.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** DPSTestSupport.py 7 Mar 2002 03:52:11 -0000 1.7
--- DPSTestSupport.py 8 Mar 2002 04:30:36 -0000 1.8
***************
*** 24,29 ****
import UnitTestFolder
import sys, os
! #, unittest, re, difflib, types, inspect
! #from pprint import pformat
# try to import the current working version if possible
--- 24,28 ----
import UnitTestFolder
import sys, os
! import unittest, difflib, inspect, os, sys
# try to import the current working version if possible
***************
*** 34,39 ****
from dps.transforms import universal
- import unittest, difflib, inspect, os, sys
-
try:
import mypdb as pdb
--- 33,36 ----
***************
*** 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
--- 142,148 ----
|