D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
cloudlinux
/
venv
/
lib64
/
python3.11
/
site-packages
/
pyfakefs
/
pytest_tests
/
Filename :
unhashable.py
back
Copy
import sys import types class Unhashable(types.ModuleType): """ Unhashable module, used for regression test for #923. """ @property def Unhashable(self): return self def __eq__(self, other): raise NotImplementedError("Cannot compare unhashable") if sys.modules[__name__] is not Unhashable: sys.modules[__name__] = Unhashable("unhashable")