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 test_unicode_file fail on 2.3a1 on winNT
Type: Stage:
Components: Windows Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: irmen, nnorwitz, rhettinger, tebeka, tim.peters
Priority: normal Keywords:

Created on 2003-01-07 15:58 by tebeka, last changed 2022-04-10 16:06 by admin. This issue is now closed.

Messages (8)
msg13933 - (view) Author: Miki Tebeka (tebeka) * Date: 2003-01-07 15:58
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-??'
msg13934 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-03-23 20:40
Logged In: YES 
user_id=33168

Is this problem still happening with 2.3a2+ ?
msg13935 - (view) Author: Miki Tebeka (tebeka) * Date: 2003-03-24 07:51
Logged In: YES 
user_id=358087

Yes.
Version is:
2.3a2 (#39, Feb 19 2003, 17:58:58) [MSC v.1200 32 bit (Intel)]
msg13936 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2003-03-25 04:03
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.
msg13937 - (view) Author: Irmen de Jong (irmen) (Python triager) Date: 2003-04-26 17:14
Logged In: YES 
user_id=129426

Both tests run fine on my windows XP box with Python 2.3b...
msg13938 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-05-22 21:55
Logged In: YES 
user_id=33168

Miki, are you still having this problem with 2.3b1?  Can
this be closed?
msg13939 - (view) Author: Miki Tebeka (tebeka) * Date: 2003-05-25 08:03
Logged In: YES 
user_id=358087

As far as I recall it does.
(I've lost my job so I don't have access to NT anymore).

Miki
msg13940 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2003-07-12 01:33
Logged In: YES 
user_id=80475

Based on irmen's test, I'll mark this as fixed and close it.
History
Date User Action Args
2022-04-10 16:06:07adminsetgithub: 37733
2003-01-07 15:58:35tebekacreate