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
Type: Stage:
Components: None Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: brett.cannon, jhylton, theaney, tprimke
Priority: normal Keywords:

Created on 2004-11-06 11:53 by tprimke, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
services.bz2 tprimke, 2004-11-07 05:50 My /etc/services file
Messages (8)
msg23025 - (view) Author: TPJ (tprimke) Date: 2004-11-06 11:53
I've just downloaded Python 2.4 beta 2. I've compiled
it successfully. Then I ran tests (make test). Anything
but test_socket went well. On test_socket I've got :

test  test_socket failed -- Traceback (most recent call
last) :
   File
"/home/tpj/alt3/src/Python-2.4b2/Lib/test/test_socket.py",
line 330, in testGetServBy
   eq(port, port2)
AssertionError: 7 != 4

It has failed twice (py and pyc).

I haven't had such problems with previous Python's
version (I've compiled 2.3.4 final).

I'm working on Slackware 10.0, on 2.4.26-lck1.
msg23026 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2004-11-06 20:17
Logged In: YES 
user_id=357491

Could you upload your /etc/services file?  We have had this test fail 
before because the order of services checked can be touchy and non-
standard on occasion.
msg23027 - (view) Author: TPJ (tprimke) Date: 2004-11-07 06:02
Logged In: YES 
user_id=1153809

I've just attached my /etc/services file.
msg23028 - (view) Author: Jeremy Hylton (jhylton) (Python triager) Date: 2004-11-07 14:38
Logged In: YES 
user_id=31392

It looks like this test is failing on the 'echo' service. 
The test has a platform-specific set of tests.  What happens
if you add your platform to the list?  See line 314 of
test_socket.py.
msg23029 - (view) Author: TPJ (tprimke) Date: 2004-11-08 06:00
Logged In: YES 
user_id=1153809

I've added my platform ('linux2') to the list (line 314 of
test_socket.py). After this change test went well (no errors
occurred).
msg23030 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2004-11-09 00:26
Logged In: YES 
user_id=357491

Perhaps we should just make the ``('daytime', 'qotd', 'domain')`` tuple 
the only option and just tack on 'echo' to the end of that list?  What do 
you think, Jeremy?
msg23031 - (view) Author: Tim Heaney (theaney) Date: 2004-11-19 13:03
Logged In: YES 
user_id=827666


I get the same results with Python 2.4 release candidate 1
(also on Slackware)

test_socket
test test_socket failed -- Traceback (most recent call last):
  File
"/home/tim/Download/Python-2.4c1/Lib/test/test_socket.py",
line 330, in testGetServBy
    eq(port, port2)
AssertionError: 7 != 4

I added 'linux2' to line 314 and then the test said OK.

msg23032 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2004-11-20 21:11
Logged In: YES 
user_id=357491

It's still failing in 2.4rc1 because the test was never changed.  In rev. 
1.77 on HEAD.
History
Date User Action Args
2022-04-11 14:56:07adminsetgithub: 41128
2004-11-06 11:53:56tprimkecreate