diff --git a/inmemorystorage/storage.py b/inmemorystorage/storage.py index 94a9846..8ca35bc 100644 --- a/inmemorystorage/storage.py +++ b/inmemorystorage/storage.py @@ -211,4 +211,7 @@ def created_time(self, name): return file.created_at def __eq__(self, other): - return self.filesystem == other.filesystem and self.base_url == other.base_url + return ( + isinstance(other, InMemoryStorage) + and self.filesystem == other.filesystem and self.base_url == other.base_url + )