[yt-svn] commit/yt: chummels: Modifiying the answer testing framework slightly to fix a bug which occurs when running some of the tests, which causes the pf to not be loaded properly.
Bitbucket
commits-noreply at bitbucket.org
Thu Nov 15 16:58:41 PST 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/3d6b030a34ad/
changeset: 3d6b030a34ad
branch: yt
user: chummels
date: 2012-11-16 01:58:23
summary: Modifiying the answer testing framework slightly to fix a bug which occurs when running some of the tests, which causes the pf to not be loaded properly.
affected #: 1 file
diff -r c57187ca13b69862a02b80af7b5b3eb83698a4c6 -r 3d6b030a34ad4bc6caf9049ccf29e40cba1a9e4f yt/utilities/answer_testing/framework.py
--- a/yt/utilities/answer_testing/framework.py
+++ b/yt/utilities/answer_testing/framework.py
@@ -216,9 +216,9 @@
def data_dir_load(pf_fn):
path = ytcfg.get("yt", "test_data_dir")
+ if isinstance(pf_fn, StaticOutput): return pf_fn
if not os.path.isdir(path):
return False
- if isinstance(pf_fn, StaticOutput): return pf_fn
with temp_cwd(path):
pf = load(pf_fn)
pf.h
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