classification
Title: Lib/test/make_ssl_certs.py fails with NameError
Type: behavior Stage: resolved
Components: Library (Lib), Tests Versions: Python 3.5, Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: alex, christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou, python-dev
Priority: normal Keywords:

Created on 2014-07-25 23:08 by alex, last changed 2014-07-26 15:18 by pitrou. This issue is now closed.

Messages (3)
msg224011 - (view) Author: Alex Gaynor (alex) * (Python committer) Date: 2014-07-25 23:08
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`?
msg224067 - (view) Author: Roundup Robot (python-dev) Date: 2014-07-26 15:18
New changeset 83628d9e1035 by Antoine Pitrou in branch '3.4':
Issue #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 #22074: Fix Lib/test/make_ssl_certs.py
http://hg.python.org/cpython/rev/17f46a7b1125
msg224068 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2014-07-26 15:18
Good catch, this is now solved.
History
Date User Action Args
2014-07-26 15:18:44pitrousetstatus: open -> closed
versions: + Python 3.4
type: behavior
messages: + msg224068

resolution: fixed
stage: resolved
2014-07-26 15:18:14python-devsetnosy: + python-dev
messages: + msg224067
2014-07-25 23:08:32alexsetnosy: + janssen, pitrou, giampaolo.rodola, christian.heimes, dstufft
2014-07-25 23:08:25alexcreate