[New-bugs-announce] [issue21730] test_socket fails --without-threads

Berker Peksag report at bugs.python.org
Thu Jun 12 13:01:34 CEST 2014


New submission from Berker Peksag:

Here's the traceback (tested on Ubuntu 12.04):

======================================================================
ERROR: testBCM (test.test_socket.CANTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/berker/projects/cpython-default/Lib/test/test_socket.py", line 231, in _setUp
    self.server_ready = threading.Event()
AttributeError: 'NoneType' object has no attribute 'Event'

======================================================================
ERROR: testSendFrame (test.test_socket.CANTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/berker/projects/cpython-default/Lib/test/test_socket.py", line 231, in _setUp
    self.server_ready = threading.Event()
AttributeError: 'NoneType' object has no attribute 'Event'

======================================================================
ERROR: testSendMaxFrame (test.test_socket.CANTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/berker/projects/cpython-default/Lib/test/test_socket.py", line 231, in _setUp
    self.server_ready = threading.Event()
AttributeError: 'NoneType' object has no attribute 'Event'

======================================================================
ERROR: testSendMultiFrames (test.test_socket.CANTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/berker/projects/cpython-default/Lib/test/test_socket.py", line 231, in _setUp
    self.server_ready = threading.Event()
AttributeError: 'NoneType' object has no attribute 'Event'

----------------------------------------------------------------------

Patch attached.

----------
components: Tests
files: test_socket_thread.diff
keywords: patch
messages: 220339
nosy: berker.peksag
priority: normal
severity: normal
stage: patch review
status: open
title: test_socket fails --without-threads
type: behavior
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file35593/test_socket_thread.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21730>
_______________________________________


More information about the New-bugs-announce mailing list