From 57842c4051060c33ba1887521dbf71138a45569b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Oct 2026 14:10:52 +0000 Subject: [PATCH 1/2] Bump tests/data from `6a690a7` to `0ea6c04` Bumps [tests/data](https://github.com/maxmind/MaxMind-DB) from `6a690a7` to `0ea6c04`. - [Commits](https://github.com/maxmind/MaxMind-DB/compare/6a690a705bc6962c0025a32e94a8f0dc8f86418c...0ea6c04e3a14375937f93554b54e4902f739b2ae) --- updated-dependencies: - dependency-name: tests/data dependency-version: 0ea6c04e3a14375937f93554b54e4902f739b2ae dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- tests/data | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/data b/tests/data index 6a690a7..0ea6c04 160000 --- a/tests/data +++ b/tests/data @@ -1 +1 @@ -Subproject commit 6a690a705bc6962c0025a32e94a8f0dc8f86418c +Subproject commit 0ea6c04e3a14375937f93554b54e4902f739b2ae From fc72b8360a3a0b4c400f76655c34fac387485ab5 Mon Sep 17 00:00:00 2001 From: William Storey Date: Mon, 26 Oct 2026 20:25:01 +0000 Subject: [PATCH 2/2] Update the node_count bytes for the regenerated test data MaxMind-DB regenerated the test databases with mmdbwriter v2. The ipv4-24 database now has a node_count of 139, not 163. The tests that edit the raw metadata now search for the new encoded value, \xc1\x8b. Co-Authored-By: Claude Opus 5.5 --- tests/reader_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/reader_test.py b/tests/reader_test.py index 74a9144..f2de691 100644 --- a/tests/reader_test.py +++ b/tests/reader_test.py @@ -2178,7 +2178,7 @@ def test_empty_search_tree_is_accepted(self) -> None: data = pathlib.Path( f"{_TEST_DATA_DIR}/MaxMind-DB-test-ipv4-24.mmdb" ).read_bytes() - original = b"node_count\xc1\xa3" + original = b"node_count\xc1\x8b" self.assertEqual(data.count(original), 1) with ( io.BytesIO(data.replace(original, b"node_count\xc0")) as database, @@ -2194,7 +2194,7 @@ def test_invalid_tree_metadata_is_rejected_on_open(self) -> None: cases = ( (b"record_size\xa1\x18", b"record_size\xa1\x1e", "Unknown record size: 30"), ( - b"node_count\xc1\xa3", + b"node_count\xc1\x8b", b"node_count\x04\x01\xff\xff\xff\xff", "The node_count value -1 is out of range", ),