Skip to content

Commit 48c5ddf

Browse files
committed
Fix EncodingWarning in test_pickle.
1 parent 31f58cd commit 48c5ddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_zipp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ def test_pickle(self, alpharep, path_type, subpath):
518518
saved_1 = pickle.dumps(zipp.Path(zipfile_ondisk, at=subpath))
519519
restored_1 = pickle.loads(saved_1)
520520
first, *rest = restored_1.iterdir()
521-
assert first.read_text().startswith('content of ')
521+
assert first.read_text(encoding='utf-8').startswith('content of ')
522522

523523
@pass_alpharep
524524
def test_extract_orig_with_implied_dirs(self, alpharep):

0 commit comments

Comments
 (0)