We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe042ae commit ffa7554Copy full SHA for ffa7554
tests/reader_test.py
@@ -529,7 +529,9 @@ def test_reading_from_buffer(self) -> None:
529
filename = "tests/data/test-data/MaxMind-DB-test-ipv4-24.mmdb"
530
with open(filename, "rb") as f:
531
buf = io.BytesIO(f.read())
532
- reader = open_database(buf, MODE_FD)
+ # we have to use unpatched open_database here because the patched version
533
+ # calls open() on our buffer
534
+ reader = maxminddb.open_database(buf, MODE_FD)
535
self._check_ip_v4(reader, filename)
536
reader.close()
537
0 commit comments