Skip to content

Commit 9f1c240

Browse files
horghclaude
andcommitted
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) <noreply@anthropic.com>
1 parent 84f6c1a commit 9f1c240

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎tests/reader_test.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,19 +152,19 @@ def test_get_with_prefix_len(self) -> None:
152152
"ip": "200.0.2.1",
153153
"file_name": "MaxMind-DB-no-ipv4-search-tree.mmdb",
154154
"expected_prefix_len": 0,
155-
"expected_record": "::0/64",
155+
"expected_record": "::/64",
156156
},
157157
{
158158
"ip": "::200.0.2.1",
159159
"file_name": "MaxMind-DB-no-ipv4-search-tree.mmdb",
160160
"expected_prefix_len": 64,
161-
"expected_record": "::0/64",
161+
"expected_record": "::/64",
162162
},
163163
{
164164
"ip": "0:0:0:0:ffff:ffff:ffff:ffff",
165165
"file_name": "MaxMind-DB-no-ipv4-search-tree.mmdb",
166166
"expected_prefix_len": 64,
167-
"expected_record": "::0/64",
167+
"expected_record": "::/64",
168168
},
169169
{
170170
"ip": "ef00::",
@@ -294,8 +294,8 @@ def test_no_ipv4_search_tree(self) -> None:
294294
self.mode,
295295
)
296296

297-
self.assertEqual(reader.get(self.ipf("1.1.1.1")), "::0/64")
298-
self.assertEqual(reader.get(self.ipf("192.1.1.1")), "::0/64")
297+
self.assertEqual(reader.get(self.ipf("1.1.1.1")), "::/64")
298+
self.assertEqual(reader.get(self.ipf("192.1.1.1")), "::/64")
299299
reader.close()
300300

301301
def test_ipv6_address_in_ipv4_database(self) -> None:

0 commit comments

Comments
 (0)