Skip to content

Commit 06d3111

Browse files
committed
Fixed test
1 parent 36387b1 commit 06d3111

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/database_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def test_invalid_address(self):
5757
reader = geoip2.database.Reader(
5858
'tests/data/test-data/GeoIP2-City-Test.mmdb')
5959
with self.assertRaisesRegex(ValueError,
60-
'The value "invalid" is not a valid '
61-
'IP address.'):
60+
"'invalid' does not appear to be an "
61+
"IPv4 or IPv6 address."):
6262
reader.city('invalid')
6363
reader.close()

0 commit comments

Comments
 (0)