summaryrefslogtreecommitdiffstats
path: root/test/BitKeeper.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/BitKeeper.py')
-rw-r--r--test/BitKeeper.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/BitKeeper.py b/test/BitKeeper.py
index 3374f92..4d703ab 100644
--- a/test/BitKeeper.py
+++ b/test/BitKeeper.py
@@ -46,7 +46,7 @@ def is_writable(file):
try:
login = os.getlogin()
-except AttributeError:
+except (AttributeError, OSError):
try:
login = os.environ['USER']
except KeyError:
@@ -298,7 +298,7 @@ def cat(env, source, target):
for src in source:
f.write(open(src, "rb").read())
f.close()
-DefaultEnvironment()['SCCS'] = r'%s'
+DefaultEnvironment(tools=['SCCS'])['SCCS'] = r'%s'
env = Environment(BUILDERS={'Cat':Builder(action=cat)})
env.Cat('aaa.out', 'aaa.in')
env.Cat('bbb.out', 'bbb.in')