This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ccbench doesn't work on 3.1/2.7
Type: behavior Stage: resolved
Components: Demos and Tools Versions: Python 3.2, Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: pitrou Nosy List: pitrou, python-dev
Priority: normal Keywords:

Created on 2011-02-11 00:11 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg128353 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-02-11 00:11
The ccbench shipped with 3.2 is supposed to work with older versions but:

Traceback (most recent call last):
  File "/home/antoine/py3k/py3k/Tools/ccbench/ccbench.py", line 609, in <module>
    main()
  File "/home/antoine/py3k/py3k/Tools/ccbench/ccbench.py", line 564, in main
    latency_client(**kwargs)
  File "/home/antoine/py3k/py3k/Tools/ccbench/ccbench.py", line 279, in latency_client
    with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as sock:
AttributeError: 'socket' object has no attribute '__exit__'
msg130609 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-03-11 19:58
New changeset 353032fd38e2 by Antoine Pitrou in branch '3.2':
Issue #11179: Make ccbench work under Python 3.1 and 2.7 again.
http://hg.python.org/cpython/rev/353032fd38e2

New changeset 92b59654e71c by Antoine Pitrou in branch 'default':
Issue #11179: Make ccbench work under Python 3.1 and 2.7 again.
http://hg.python.org/cpython/rev/92b59654e71c
History
Date User Action Args
2022-04-11 14:57:12adminsetgithub: 55388
2011-03-11 19:59:49pitrousetstatus: open -> closed
resolution: fixed
stage: needs patch -> resolved
2011-03-11 19:58:46python-devsetnosy: + python-dev
messages: + msg130609
2011-02-11 00:11:42pitroucreate