Fixed error assertion handling in pytest.approx when None is an expected or received value when comparing dictionaries.