summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2006-11-13 03:29:55 +0000
committerwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2006-11-13 03:29:55 +0000
commitcdec1622df86ca34ad041691729785ffbe9d1a68 (patch)
tree9cede81639837a8b17954aa19f13c01d62d69fbd
parent278ca6099e5da5edee32e4bd515898fc5bbed8f5 (diff)
downloaddocutils-cdec1622df86ca34ad041691729785ffbe9d1a68.tar.gz
--- MERGE: merged r4629 to maintenance branch; original log message:
reverted r3253, incompatible with Python 2.5 git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/docutils-0.4@4811 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rwxr-xr-xtest/alltests.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/test/alltests.py b/test/alltests.py
index b28541af1..24dbdc210 100755
--- a/test/alltests.py
+++ b/test/alltests.py
@@ -21,21 +21,10 @@ start = time.time()
import sys
import os
-from types import UnicodeType
import DocutilsTestSupport # must be imported before docutils
import docutils
-def new_exception_str(self):
- for i in self.args:
- if isinstance(i, UnicodeType):
- raise RuntimeError('Error (unicode): %r' % (self.args,))
- return old_exception_str(self)
-
-old_exception_str = Exception.__str__
-Exception.__str__ = new_exception_str
-
-
class Tee:
"""Write to a file and a stream (default: stdout) simultaneously."""