def test_float_comparison(self):
        """
        Regression test for https://github.com/spacetelescope/PyFITS/issues/21
        """

        f = StringIO()

        a = np.float32(0.029751372)
        b = np.float32(0.029751368)

        report_diff_values(f, a, b)
        out = f.getvalue()

        # This test doesn't care about what the exact output is, just that it
        # did show a difference in their text representations
        assert 'a>' in out
        assert 'b>' in out
dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/tests/test_diff.py/TestDiff.test_float_comparison/original