[yt-svn] commit/yt: MatthewTurk: We need to change to temp_cwd inside the test yielding
Bitbucket
commits-noreply at bitbucket.org
Wed Nov 7 19:04:34 PST 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/24c8d678fd5b/
changeset: 24c8d678fd5b
branch: yt
user: MatthewTurk
date: 2012-11-08 04:03:38
summary: We need to change to temp_cwd inside the test yielding
affected #: 1 file
diff -r 92c62c32ab3388ef40f7b71e0f936947528755a0 -r 24c8d678fd5b78afa853034f45e4ddffdb782a71 yt/utilities/answer_testing/framework.py
--- a/yt/utilities/answer_testing/framework.py
+++ b/yt/utilities/answer_testing/framework.py
@@ -398,10 +398,11 @@
def ftrue(func):
@wraps(func)
def fyielder(*args, **kwargs):
- for t in func(*args, **kwargs):
- if isinstance(t, AnswerTestingTest):
- t.prefix = prefix
- yield t
+ with temp_cwd(path):
+ for t in func(*args, **kwargs):
+ if isinstance(t, AnswerTestingTest):
+ t.prefix = prefix
+ yield t
return fyielder
if os.path.exists("OutputLog"):
return ftrue
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