From 1b4e00b49f78f1deae29327a5841f8527309b0da Mon Sep 17 00:00:00 2001 From: ccremers Date: Wed, 2 Mar 2005 15:09:29 +0000 Subject: [PATCH] - Caching is working nicely now. --- test/scythercache.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/test/scythercache.py b/test/scythercache.py index 38cc4ed..a49a4e7 100644 --- a/test/scythercache.py +++ b/test/scythercache.py @@ -76,17 +76,12 @@ def eval (argumentstring, inputstring): h.flush() (status, scout) = scythercall (argumentstring, h.name) h.close() - if not(status <= 0 or status == 1): - # All is well - f = open(cachefile,'w') - f.write(scout) - f.close() - else: - print status - print scout - print h.name - sys.exit() + # Write cache file even if it's wrong + f = open(cachefile,'w') + f.write(scout) + f.close() + return (status,scout)