Skip to content

Commit 7da3890

Browse files
committed
Address ruff lint issues
1 parent 6756055 commit 7da3890

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/database_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,5 +245,5 @@ def test_modes(self, mock_open) -> None:
245245
with geoip2.database.Reader(
246246
path,
247247
mode=geoip2.database.MODE_MMAP_EXT,
248-
) as reader:
248+
):
249249
mock_open.assert_called_once_with(path, geoip2.database.MODE_MMAP_EXT)

tests/models_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def test_city_full(self) -> None:
269269
assert re.search(
270270
r"^geoip2.models.City\(\{.*geoname_id.*\}, \[.*en.*\]\)", str(model)
271271
), "City str representation looks reasonable"
272-
assert not (model == True), "__eq__ does not blow up on weird input"
272+
assert not (model == 8), "__eq__ does not blow up on weird input"
273273

274274
def test_unknown_keys(self) -> None:
275275
model = geoip2.models.City(

0 commit comments

Comments
 (0)