Skip to content

Commit 38cf099

Browse files
committed
Slight test fix when using pure Python reader on 2.x
1 parent 06d3111 commit 38cf099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/database_test.py

Lines changed: 1 addition & 1 deletion
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-
"'invalid' does not appear to be an "
60+
"u?'invalid' does not appear to be an "
6161
"IPv4 or IPv6 address."):
6262
reader.city('invalid')
6363
reader.close()

0 commit comments

Comments
 (0)