From 84f6c1a0f88f84dfbb4576dee660d89b44621c7c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 4 Aug 2026 20:09:33 +0000 Subject: [PATCH 1/2] Bump tests/data from `a75bfb1` to `7ef0ff7` Bumps [tests/data](https://github.com/maxmind/MaxMind-DB) from `a75bfb1` to `7ef0ff7`. - [Commits](https://github.com/maxmind/MaxMind-DB/compare/a75bfb17a0e77f576c9eef0cfbf6220909e959e7...7ef0ff7a28a05d08020fe1a7d9902d2b71f8bc1b) --- updated-dependencies: - dependency-name: tests/data dependency-version: 7ef0ff7a28a05d08020fe1a7d9902d2b71f8bc1b 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 a75bfb17..7ef0ff7a 160000 --- a/tests/data +++ b/tests/data @@ -1 +1 @@ -Subproject commit a75bfb17a0e77f576c9eef0cfbf6220909e959e7 +Subproject commit 7ef0ff7a28a05d08020fe1a7d9902d2b71f8bc1b From 9f1c2402a8b0762ee63c9a4070cd3ec2811af2c2 Mon Sep 17 00:00:00 2001 From: William Storey Date: Wed, 5 Aug 2026 20:04:23 +0000 Subject: [PATCH 2/2] Expect ::/64 from the no-IPv4-search-tree database The database stores its single record as the string form of that record's own network. MaxMind-DB regenerated the test databases with its Go writer, which renders the network as ::/64 where the previous Perl writer produced ::0/64. Co-Authored-By: Claude Opus 5 (1M context) --- tests/reader_test.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/reader_test.py b/tests/reader_test.py index b2c3edd1..59cb5747 100644 --- a/tests/reader_test.py +++ b/tests/reader_test.py @@ -152,19 +152,19 @@ def test_get_with_prefix_len(self) -> None: "ip": "200.0.2.1", "file_name": "MaxMind-DB-no-ipv4-search-tree.mmdb", "expected_prefix_len": 0, - "expected_record": "::0/64", + "expected_record": "::/64", }, { "ip": "::200.0.2.1", "file_name": "MaxMind-DB-no-ipv4-search-tree.mmdb", "expected_prefix_len": 64, - "expected_record": "::0/64", + "expected_record": "::/64", }, { "ip": "0:0:0:0:ffff:ffff:ffff:ffff", "file_name": "MaxMind-DB-no-ipv4-search-tree.mmdb", "expected_prefix_len": 64, - "expected_record": "::0/64", + "expected_record": "::/64", }, { "ip": "ef00::", @@ -294,8 +294,8 @@ def test_no_ipv4_search_tree(self) -> None: self.mode, ) - self.assertEqual(reader.get(self.ipf("1.1.1.1")), "::0/64") - self.assertEqual(reader.get(self.ipf("192.1.1.1")), "::0/64") + self.assertEqual(reader.get(self.ipf("1.1.1.1")), "::/64") + self.assertEqual(reader.get(self.ipf("192.1.1.1")), "::/64") reader.close() def test_ipv6_address_in_ipv4_database(self) -> None: