[Python-bugs-list] [ python-Bugs-663782 ] test_socket test_unicode_file fail on 2.3a1 on winNT

SourceForge.net noreply@sourceforge.net
Thu, 22 May 2003 14:55:08 -0700


Bugs item #663782, was opened at 2003-01-07 10:58
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=663782&group_id=5470

Category: Windows
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Miki Tebeka (tebeka)
Assigned to: Nobody/Anonymous (nobody)
Summary: test_socket test_unicode_file fail on 2.3a1 on winNT

Initial Comment:
This happens after installing 2.3a1 on winNT 4 sp6.

D:\apps\Python23>python
D:\apps\Python23\Lib\test\test_socket.py
testCrucialConstants (__main__.GeneralModuleTests) ... ok
testDefaultTimeout (__main__.GeneralModuleTests) ... ok
testGetServByName (__main__.GeneralModuleTests) ... ok
testGetSockOpt (__main__.GeneralModuleTests) ... ok
testHostnameRes (__main__.GeneralModuleTests) ... ok
testInterpreterCrash (__main__.GeneralModuleTests) ... ok
testNtoH (__main__.GeneralModuleTests) ... ok
testRefCountGetNameInfo (__main__.GeneralModuleTests)
... ok
testSendAfterClose (__main__.GeneralModuleTests) ... ok
testSetSockOpt (__main__.GeneralModuleTests) ... ok
testSockName (__main__.GeneralModuleTests) ... ok
testSocketError (__main__.GeneralModuleTests) ... ok
testFromFd (__main__.BasicTCPTest) ... ok
testOverFlowRecv (__main__.BasicTCPTest) ... ok
testOverFlowRecvFrom (__main__.BasicTCPTest) ... ok
testRecv (__main__.BasicTCPTest) ... ok
testRecvFrom (__main__.BasicTCPTest) ... ok
testSendAll (__main__.BasicTCPTest) ... ok
testShutdown (__main__.BasicTCPTest) ... ok
testRecvFrom (__main__.BasicUDPTest) ... ok
testSendtoAndRecv (__main__.BasicUDPTest) ... ok
testAccept (__main__.NonBlockingTCPTests) ... FAIL
ERROR
testConnect (__main__.NonBlockingTCPTests) ... ok
testRecv (__main__.NonBlockingTCPTests) ... ok
testSetBlocking (__main__.NonBlockingTCPTests) ... ok
testFullRead (__main__.FileObjectClassTestCase) ... ok
testReadline (__main__.FileObjectClassTestCase) ... ok
testSmallRead (__main__.FileObjectClassTestCase) ... ok
testUnbufferedRead (__main__.FileObjectClassTestCase)
... ok
testFullRead
(__main__.UnbufferedFileObjectClassTestCase) ... ok
testReadline
(__main__.UnbufferedFileObjectClassTestCase) ... ok
testSmallRead
(__main__.UnbufferedFileObjectClassTestCase) ... ok
testUnbufferedRead
(__main__.UnbufferedFileObjectClassTestCase) ... ok
testUnbufferedReadline
(__main__.UnbufferedFileObjectClassTestCase) ... ok
testFullRead
(__main__.LineBufferedFileObjectClassTestCase) ... ok
testReadline
(__main__.LineBufferedFileObjectClassTestCase) ... ok
testSmallRead
(__main__.LineBufferedFileObjectClassTestCase) ... ok
testUnbufferedRead
(__main__.LineBufferedFileObjectClassTestCase) ... ok
testFullRead
(__main__.SmallBufferedFileObjectClassTestCase) ... ok
testReadline
(__main__.SmallBufferedFileObjectClassTestCase) ... ok
testSmallRead
(__main__.SmallBufferedFileObjectClassTestCase) ... ok
testUnbufferedRead
(__main__.SmallBufferedFileObjectClassTestCase) ... ok

======================================================================
ERROR: testAccept (__main__.NonBlockingTCPTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\apps\Python23\Lib\test\test_socket.py", line
117, in _tearDown
    self.fail(msg)
  File "D:\apps\Python23\lib\unittest.py", line 260, in
fail
    raise self.failureException, msg
AssertionError: (10061, 'Connection refused')

======================================================================
FAIL: testAccept (__main__.NonBlockingTCPTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\apps\Python23\Lib\test\test_socket.py", line
475, in testAccept
    self.fail("Error trying to do non-blocking accept.")
  File "D:\apps\Python23\lib\unittest.py", line 260, in
fail
    raise self.failureException, msg
AssertionError: Error trying to do non-blocking accept.

----------------------------------------------------------------------
Ran 42 tests in 2.204s

FAILED (failures=1, errors=1)
Traceback (most recent call last):
  File "D:\apps\Python23\Lib\test\test_socket.py", line
632, in ?
    test_main()
  File "D:\apps\Python23\Lib\test\test_socket.py", line
629, in test_main
    test_support.run_suite(suite)
  File "D:\apps\Python23\lib\test\test_support.py",
line 217, in run_suite
    raise TestFailed(msg)
test.test_support.TestFailed: errors occurred; run in
verbose mode for details
D:\apps\Python23>python
D:\apps\Python23\Lib\test\test_unicode_file.py
File doesn't exist (encoded string) after creating it
Traceback (most recent call last):
  File
"D:\apps\Python23\Lib\test\test_unicode_file.py", line
37, in ?
    if os.stat(TESTFN_ENCODED) != os.stat(TESTFN_UNICODE):
OSError: [Errno 2] No such file or directory: '@test-??'


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

>Comment By: Neal Norwitz (nnorwitz)
Date: 2003-05-22 17:55

Message:
Logged In: YES 
user_id=33168

Miki, are you still having this problem with 2.3b1?  Can
this be closed?

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

Comment By: Irmen de Jong (irmen)
Date: 2003-04-26 13:14

Message:
Logged In: YES 
user_id=129426

Both tests run fine on my windows XP box with Python 2.3b...

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

Comment By: Tim Peters (tim_one)
Date: 2003-03-24 23:03

Message:
Logged In: YES 
user_id=31435

I personally tested these before the releases, on Win98SE 
and on Win2000 Pro.  No problems there, although 
test_unicode_file turns itself off on Win9x.  I don't have 
access to an NT box, and these won't get fixed until a 
Python developer who does have NT can dig into them 
there.

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

Comment By: Miki Tebeka (tebeka)
Date: 2003-03-24 02:51

Message:
Logged In: YES 
user_id=358087

Yes.
Version is:
2.3a2 (#39, Feb 19 2003, 17:58:58) [MSC v.1200 32 bit (Intel)]

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

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-03-23 15:40

Message:
Logged In: YES 
user_id=33168

Is this problem still happening with 2.3a2+ ?

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=663782&group_id=5470