[New-bugs-announce] [issue11179] ccbench doesn't work on 3.1/2.7

Antoine Pitrou report at bugs.python.org
Fri Feb 11 01:11:43 CET 2011

New submission from Antoine Pitrou <pitrou at free.fr>:

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>
  File "/home/antoine/py3k/py3k/Tools/ccbench/ccbench.py", line 564, in main
  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__'

assignee: pitrou
components: Demos and Tools
messages: 128353
nosy: pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: ccbench doesn't work on 3.1/2.7
type: behavior
versions: Python 3.2, Python 3.3

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list