[yt-svn] commit/yt: mqk: Fixing a bug in can_run_pf() in answer_testing/framework.py.

Bitbucket commits-noreply at bitbucket.org
Mon Nov 26 13:50:29 PST 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/b1ba33518f0b/
changeset:   b1ba33518f0b
branch:      yt
user:        mqk
date:        2012-11-26 22:46:05
summary:     Fixing a bug in can_run_pf() in answer_testing/framework.py.
affected #:  1 file

diff -r f7edfc242413e104df97fe7365f52814e43fca82 -r b1ba33518f0b7512086a211827a32da6f608e0e9 yt/utilities/answer_testing/framework.py
--- a/yt/utilities/answer_testing/framework.py
+++ b/yt/utilities/answer_testing/framework.py
@@ -206,11 +206,11 @@
     os.chdir(oldcwd)
 
 def can_run_pf(pf_fn):
+    if isinstance(pf_fn, StaticOutput):
+        return AnswerTestingTest.result_storage is not None
     path = ytcfg.get("yt", "test_data_dir")
     if not os.path.isdir(path):
         return False
-    if isinstance(pf_fn, StaticOutput):
-        return AnswerTestingTest.result_storage is not None
     with temp_cwd(path):
         try:
             load(pf_fn)

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