8000 bpo-40105: Truncating file if opened in append mode. by mzr · Pull Request #19337 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-401 8000 05: Truncating file if opened in append mode. #19337

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Sep 28, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
delete unnecessary whitespace change
  • Loading branch information
mzr committed Sep 28, 2020
commit 55d3b4625030ca4d39f3317f4fe77139ae5c96ab
1 change: 1 addition & 0 deletions Lib/test/test_zipfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1811,6 +1811,7 @@ def test_struct_sizes(self):

def test_comments(self):
"""Check that comments on the archive are handled properly."""

# check default comment is empty
with zipfile.ZipFile(TESTFN, mode="w") as zipf:
self.assertEqual(zipf.comment, b'')
Expand Down
0