[yt-svn] commit/yt: MatthewTurk: Sam's change from a few weeks ago was valid, but because these tests
Bitbucket
commits-noreply at bitbucket.org
Fri Mar 2 11:34:19 PST 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/e10061cae58d/
changeset: e10061cae58d
branch: yt
user: MatthewTurk
date: 2012-03-02 20:25:18
summary: Sam's change from a few weeks ago was valid, but because these tests
accidently included *meaningless results*, they had a duplicated field key that
was getting included by mistake. Anyway, tests are now fixed.
affected #: 1 file
diff -r ab0e7664f75da1ed9eb7212219cb4af8254a3929 -r e10061cae58d131226572b050bf54a2a1fe7889a tests/projections.py
--- a/tests/projections.py
+++ b/tests/projections.py
@@ -28,8 +28,10 @@
field=field, axis=axis, weight_field="Density")
for field in field_list:
- create_test(TestGasDistribution, "density_%s" % field,
- field_x="Density", field_y=field)
- create_test(Test2DGasDistribution, "density_x-vel_%s" % field,
- field_x="Density", field_y="x-velocity", field_z=field,
- weight="CellMassMsun")
+ if field != "Density":
+ create_test(TestGasDistribution, "density_%s" % field,
+ field_x="Density", field_y=field)
+ if field not in ("x-velocity", "Density"):
+ create_test(Test2DGasDistribution, "density_x-vel_%s" % field,
+ field_x="Density", field_y="x-velocity", field_z=field,
+ weight="CellMassMsun")
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