diff --git a/pytools/test/test_persistent_dict.py b/pytools/test/test_persistent_dict.py index 33cfb33c..d1969fd2 100644 --- a/pytools/test/test_persistent_dict.py +++ b/pytools/test/test_persistent_dict.py @@ -1077,7 +1077,7 @@ def test_nan_keys() -> None: with (pytest.warns(CollisionWarning), pytest.raises(NoSuchEntryCollisionError)): - pdict[math.nan] + pdict[nan_value] finally: shutil.rmtree(tmpdir)