Skip to content

Commit

Permalink
Fix EncodingWarning in test_pickle.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 25, 2023
1 parent 31f58cd commit 48c5ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_zipp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 48c5ddf

Please sign in to comment.