Skip to content

Commit

Permalink
Add UTF-8 encoding to whois file reading in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Misiu committed Jan 14, 2025
1 parent 34e0144 commit 30b544f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def test_com_allsamples(self):
for path in glob(whois_path):
# Parse whois data
domain = os.path.basename(path)
with open(path) as whois_fp:
with open(path, encoding="utf-8") as whois_fp:
data = whois_fp.read()

w = WhoisEntry.load(domain, data)
Expand Down

0 comments on commit 30b544f

Please sign in to comment.