summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/tests/test_persistence.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cloudinit/tests/test_persistence.py b/cloudinit/tests/test_persistence.py
index 3e5eaa8d..ec1152a9 100644
--- a/cloudinit/tests/test_persistence.py
+++ b/cloudinit/tests/test_persistence.py
@@ -105,8 +105,7 @@ class VersionIsPoppedFromState(CloudInitPickleMixin, metaclass=_Collector):
def _unpickle(self, ci_pkl_version: int) -> None:
# `self._ci_pkl_version` returns the type's _ci_pkl_version if it isn't
# in instance state, so we need to explicitly check self.__dict__.
- sentinel = mock.sentinel.default
- assert self.__dict__.get("_ci_pkl_version", sentinel) == sentinel
+ assert "_ci_pkl_version" not in self.__dict__
class TestPickleMixin: