[yt-svn] commit/yt: ngoldbaum: Fixing an issue with load() that was causing the answer tests to behave incorrectly.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Aug 12 10:30:07 PDT 2013


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/6c210dc42c5b/
Changeset:   6c210dc42c5b
Branch:      yt
User:        ngoldbaum
Date:        2013-08-09 09:33:23
Summary:     Fixing an issue with load() that was causing the answer tests to behave incorrectly.
Affected #:  2 files

diff -r d33be33da703510aa9cf4e85da906bcf0ac61229 -r 6c210dc42c5b750d31235ddefbc6bb78c1183009 yt/data_objects/static_output.py
--- a/yt/data_objects/static_output.py
+++ b/yt/data_objects/static_output.py
@@ -70,6 +70,8 @@
             obj = object.__new__(cls)
             if obj._skip_cache is False:
                 _cached_pfs[apath] = obj
+        else:
+            obj = _cached_pfs[apath]
         return obj
 
     def __init__(self, filename, data_style=None, file_style=None):

diff -r d33be33da703510aa9cf4e85da906bcf0ac61229 -r 6c210dc42c5b750d31235ddefbc6bb78c1183009 yt/utilities/answer_testing/framework.py
--- a/yt/utilities/answer_testing/framework.py
+++ b/yt/utilities/answer_testing/framework.py
@@ -270,7 +270,7 @@
     with temp_cwd(path):
         try:
             load(pf_fn)
-        except:
+        except YTOutputNotIdentified:
             return False
     return AnswerTestingTest.result_storage is not None

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list