From 1bb412abc4a8cada2f32be255c07f3cf81817b12 Mon Sep 17 00:00:00 2001 From: FriedrichFroebel Date: Tue, 3 Mar 2020 09:08:47 +0100 Subject: [PATCH] set correct file encoding for Windows --- test/test_geo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_geo.py b/test/test_geo.py index b5776a3..443b653 100644 --- a/test/test_geo.py +++ b/test/test_geo.py @@ -203,7 +203,7 @@ def test_blocks(self, mock_utfgrid): """Parse locally stored grid and compare to expected results""" # load mock utfgrid from file - with open(_sample_utfgrid_file) as f: + with open(_sample_utfgrid_file, encoding="utf8") as f: mock_utfgrid.return_value = json.load(f) # load expected caches from file