Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion sdk/python-bootstrap/tests/test_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading