Intrusion Exploit
Server: LiteSpeed
System: Linux cisadane.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: lenf4658 (1805)
PHP: 8.4.19
Disabled: NONE
Upload Files
File: //opt/cloudlinux/venv/lib64/python3.11/site-packages/pyfakefs/pytest_tests/unhashable.py
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")