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

Lib/test/make_ssl_certs.py fails with NameError #66272

Closed
alex opened this issue Jul 25, 2014 · 3 comments
Closed

Lib/test/make_ssl_certs.py fails with NameError #66272

alex opened this issue Jul 25, 2014 · 3 comments
Labels
stdlib Python modules in the Lib dir tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@alex
Copy link
Member

alex commented Jul 25, 2014

BPO 22074
Nosy @pitrou, @giampaolo, @tiran, @alex, @dstufft

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2014-07-26.15:18:44.426>
created_at = <Date 2014-07-25.23:08:25.000>
labels = ['tests', 'type-bug', 'library']
title = 'Lib/test/make_ssl_certs.py fails with NameError'
updated_at = <Date 2014-07-26.15:18:44.424>
user = 'https://github.com/alex'

bugs.python.org fields:

activity = <Date 2014-07-26.15:18:44.424>
actor = 'pitrou'
assignee = 'none'
closed = True
closed_date = <Date 2014-07-26.15:18:44.426>
closer = 'pitrou'
components = ['Library (Lib)', 'Tests']
creation = <Date 2014-07-25.23:08:25.000>
creator = 'alex'
dependencies = []
files = []
hgrepos = []
issue_num = 22074
keywords = []
message_count = 3.0
messages = ['224011', '224067', '224068']
nosy_count = 7.0
nosy_names = ['janssen', 'pitrou', 'giampaolo.rodola', 'christian.heimes', 'alex', 'python-dev', 'dstufft']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue22074'
versions = ['Python 3.4', 'Python 3.5']

@alex
Copy link
Member Author

alex commented Jul 25, 2014

This is on default:

$ python3 Lib/test/make_ssl_certs.py
creating cert for localhost
Generating a 1024 bit RSA private key
.++++++
....................................................++++++
writing new private key to '/var/folders/fm/57qdjdrx6gzgcq1zlym0xwfc0000gn/T/tmpbfrqx7mo'

password protecting ssl_key.pem in ssl_key.passwd.pem
writing RSA key
writing RSA key
Traceback (most recent call last):
  File "Lib/test/make_ssl_certs.py", line 158, in <module>
    make_ca()
  File "Lib/test/make_ssl_certs.py", line 118, in make_ca
    r.write("00")
NameError: name 'r' is not defined

I can't see anything that ought to be assigning r, perhaps it's supposed to be f?

@alex alex added stdlib Python modules in the Lib dir tests Tests in the Lib/test dir labels Jul 25, 2014
@python-dev
Copy link
Mannequin

python-dev mannequin commented Jul 26, 2014

New changeset 83628d9e1035 by Antoine Pitrou in branch '3.4':
Issue bpo-22074: Fix Lib/test/make_ssl_certs.py
http://hg.python.org/cpython/rev/83628d9e1035

New changeset 17f46a7b1125 by Antoine Pitrou in branch 'default':
Issue bpo-22074: Fix Lib/test/make_ssl_certs.py
http://hg.python.org/cpython/rev/17f46a7b1125

@pitrou
Copy link
Member

pitrou commented Jul 26, 2014

Good catch, this is now solved.

@pitrou pitrou closed this as completed Jul 26, 2014
@pitrou pitrou added the type-bug An unexpected behavior, bug, or error label Jul 26, 2014
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants