Commits

Matthew Turk committed 0776521 Merge

Merged in MatthewTurk/yt-3.0 (pull request #24)

This changes assert_equal in field unit conversion tests to allow 4 nulp.

Comments (0)

Files changed (1)

yt/data_objects/tests/test_fields.py

         if not field.particle_type:
             assert_equal(v1, dd1["gas", self.field_name])
         if not needs_spatial:
-            assert_equal(v1, conv*field._function(field, dd2))
+            assert_almost_equal_nulp(v1, conv*field._function(field, dd2), 4)
         if not skip_grids:
             for g in pf.h.grids:
                 g.field_parameters.update(_sample_parameters)