From 48c5ddf94f5fa98e092119e969ecbda52c3d23f6 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 24 Feb 2023 20:28:48 -0500 Subject: [PATCH] Fix EncodingWarning in test_pickle. --- tests/test_zipp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_zipp.py b/tests/test_zipp.py index eeb2bf8..73f10e7 100644 --- a/tests/test_zipp.py +++ b/tests/test_zipp.py @@ -518,7 +518,7 @@ def test_pickle(self, alpharep, path_type, subpath): saved_1 = pickle.dumps(zipp.Path(zipfile_ondisk, at=subpath)) restored_1 = pickle.loads(saved_1) first, *rest = restored_1.iterdir() - assert first.read_text().startswith('content of ') + assert first.read_text(encoding='utf-8').startswith('content of ') @pass_alpharep def test_extract_orig_with_implied_dirs(self, alpharep):