summaryrefslogtreecommitdiff
path: root/runtest.py
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2010-04-20 21:09:45 +0000
committerGreg Noel <GregNoel@tigris.org>2010-04-20 21:09:45 +0000
commit000e16d5d8d90971d76022e6d4d8e7cd9055363a (patch)
tree170c627b8d259510e58f19cd0222e442c8ffb0bc /runtest.py
parente8586136c32093ff4321c364d9d39300e9e3f6de (diff)
downloadscons-000e16d5d8d90971d76022e6d4d8e7cd9055363a.tar.gz
http://scons.tigris.org/issues/show_bug.cgi?id=2345
One-line changes: Wrap pickle.dump with staticmethod(). Keep softspace in Unbuffered wrapper class for backward compatibility with 3.x. Use ModuleType as a factory function rather than a base class. Derive exception class from something derived from BaseException (required for 3.x).
Diffstat (limited to 'runtest.py')
-rw-r--r--runtest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtest.py b/runtest.py
index a5225f1b..32e99d6d 100644
--- a/runtest.py
+++ b/runtest.py
@@ -752,6 +752,7 @@ tests = list(map(Test, tests))
class Unbuffered:
def __init__(self, file):
self.file = file
+ self.softspace = 0 ## backward compatibility; not supported in Py3k
def write(self, arg):
self.file.write(arg)
self.file.flush()