Dicts with non-numerics and infinites have no tolerances
(self)
| 812 | |
| 813 | @pytest.mark.skipif(sys.version_info < (3, 7), reason="requires ordered dicts") |
| 814 | def test_nonnumeric_dict_repr(self): |
| 815 | """Dicts with non-numerics and infinites have no tolerances""" |
| 816 | x1 = {"foo": 1.0000005, "bar": None, "foobar": inf} |
| 817 | assert ( |
| 818 | repr(approx(x1)) |
| 819 | == "approx({'foo': 1.0000005 ± 1.0e-06, 'bar': None, 'foobar': inf})" |
| 820 | ) |
| 821 | |
| 822 | def test_nonnumeric_list_repr(self): |
| 823 | """Lists with non-numerics and infinites have no tolerances""" |