def test_encode_nan(self):
        """
        Ensure Error is raised when encoding nan
        """
        self._raises_on_dump({
            "type": "Point",
            "coordinates": (float("nan"), 1.0),
        })

        Ensure Error is raised when encoding nan
        
tests/test_strict_json.py