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: test_socket fails --without-threads
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.4, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: berker.peksag, python-dev, terry.reedy
Priority: normal Keywords: patch

Created on 2014-06-12 11:01 by berker.peksag, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_socket_thread.diff berker.peksag, 2014-06-12 11:01 review
Messages (3)
msg220339 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2014-06-12 11:01
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.
msg220484 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-06-13 19:21
New changeset f44275c66fcf by Terry Jan Reedy in branch '3.4':
Issue #21730: Add no-thread skip in test_socket. Patch by Berker Peksag.
http://hg.python.org/cpython/rev/f44275c66fcf
msg220485 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2014-06-13 19:24
It is helpful to note that an issue such as this does not apply to 2.7, so no one needs to check whether the omission is an oversight, and that you know that the patch applies cleanly to both 3.4 and 3.5.
History
Date User Action Args
2022-04-11 14:58:04adminsetgithub: 65929
2014-06-13 19:24:44terry.reedysetstatus: open -> closed
resolution: fixed
messages: + msg220485

stage: patch review -> resolved
2014-06-13 19:21:24python-devsetnosy: + python-dev
messages: + msg220484
2014-06-13 19:14:29terry.reedysetassignee: terry.reedy

nosy: + terry.reedy
2014-06-12 11:01:34berker.peksagcreate