diff --git a/news.d/api/1302.new.md b/news.d/api/1302.new.md new file mode 100644 index 000000000..900fbc4df --- /dev/null +++ b/news.d/api/1302.new.md @@ -0,0 +1,4 @@ +Add some new helpers to `plover_build_utils.testing`: +- `dictionary_test`: torture tests for dictionary implementations. +- `make_dict`: create a temporary dictionary. +- `parametrize`: parametrize helper for tracking test data source line numbers. diff --git a/news.d/bugfix/1302.core.md b/news.d/bugfix/1302.core.md new file mode 100644 index 000000000..4c4b59211 --- /dev/null +++ b/news.d/bugfix/1302.core.md @@ -0,0 +1,3 @@ +Fix 2 corner cases when handling dictionaries: +- If the class implementation is marked as read-only, then loading from a writable file should still result in a read-only dictionary. +- Don't allow `clear` on a read-only dictionary.