Visitar URL original
bpo-39359, zipfile: add missing "pwd: expected bytes, got str" exception by danifus · Pull Request #18031 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20220202185118/https://github.com/python/cpython/pull/18031
Skip to content
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

bpo-39359, zipfile: add missing "pwd: expected bytes, got str" exception #18031

Merged
merged 3 commits into from Sep 23, 2021

Conversation

@danifus
Copy link
Contributor

@danifus danifus commented Jan 16, 2020 •

Setting the ZipFile.pwd attribute directly skips the check to ensure the password is a bytes object and, if not, return a user friendly TypeError("pwd: expected bytes, got ") informing them of that.

https://bugs.python.org/issue39359

@ambv
Copy link
Contributor

@ambv ambv commented Sep 23, 2021

Closing and re-opening to re-trigger CI.

@ambv ambv closed this Sep 23, 2021
@ambv ambv reopened this Sep 23, 2021
@ambv ambv merged commit 91099e2 into python:main Sep 23, 2021
18 checks passed
@danifus danifus deleted the bpo-39359 branch Sep 23, 2021
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Sep 24, 2021

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 Arch Linux Asan 3.x has failed when building commit 91099e2.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/582/builds/572) and take a look at the build logs.
  4. Check if the failure is related to this commit (91099e2) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/582/builds/572

Summary of the results of the build (if available):

Click to see traceback logs
Traceback (most recent call last):
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64.asan/build/Lib/multiprocessing/resource_tracker.py", line 209, in main
    cache[rtype].remove(name)
    ^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: '/psm_bc1c4cf1'


Traceback (most recent call last):
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64.asan/build/Lib/multiprocessing/resource_tracker.py", line 209, in main
    cache[rtype].remove(name)
    ^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: '/psm_b8f1eb56'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants