From 30b544f5f3ca162c04c626706ae0687d36eb1e9d Mon Sep 17 00:00:00 2001 From: Misiu Date: Tue, 14 Jan 2025 10:43:49 +0100 Subject: [PATCH] Add UTF-8 encoding to whois file reading in tests --- test/test_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_parser.py b/test/test_parser.py index 24fdb45..a58a4a0 100644 --- a/test/test_parser.py +++ b/test/test_parser.py @@ -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)