diff --git a/sdk/python-bootstrap/tests/test_bootstrap.py b/sdk/python-bootstrap/tests/test_bootstrap.py index 78cf87e..21a6030 100644 --- a/sdk/python-bootstrap/tests/test_bootstrap.py +++ b/sdk/python-bootstrap/tests/test_bootstrap.py @@ -186,7 +186,11 @@ def fake_get(url: str) -> bytes: ): cache = _bootstrap.ensure_native_loaded("3.2.1") - self.assertEqual(cache, Path(self._tmp) / "3.2.1") + # `_cache_root()` keys the cache dir on the module's own __version__, + # not the version arg passed to `ensure_native_loaded`. Reference it + # directly so this assertion can't go stale on a version bump (the + # sibling CacheDirTests follow the same pattern). + self.assertEqual(cache, Path(self._tmp) / _bootstrap.__version__) # Native file extracted at cache root, not under a subdirectory. extracted = list(cache.glob("_native.*")) self.assertEqual(len(extracted), 1)