[Patches] [ python-Patches-670390 ] Patched test harness for logging

SourceForge.net noreply at sourceforge.net
Sat Mar 25 13:47:26 CET 2006


Patches item #670390, was opened at 2003-01-18 20:32
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=670390&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.3
Status: Closed
Resolution: Accepted
Priority: 5
Submitted By: Vinay Sajip (vsajip)
Assigned to: Nobody/Anonymous (nobody)
Summary: Patched test harness for logging

Initial Comment:
I've attached test_logging.zip which contains a new 
version of test_logging.py as well as a new version of 
the output file (test_logging).

This moves the closing of a stream till after all the 
threads have completed.

Tested under ActivePython 2.1.1 build 212 under WinXP 
Home, the script now runs correctly both when run from 
the command line and when run under regrtest.

The script uses threads and so imports threading at the 
top. The script was causing a hang *only* when run via 
regrtest or the Python command prompt if run using 
import; I tracked the problem down to the 
ThreadingMixin's process_request method. When I 
copied this into the body of my derived class, it still 
failed; but commenting out the line "import threading" 
solved the problem, at least under WinXP 
Home/ActivePython 2.1.1 build 212. Can anyone shed 
any light on this?


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

>Comment By: Martin v. Löwis (loewis)
Date: 2006-03-25 13:47

Message:
Logged In: YES 
user_id=21627

This issue is closed. Please submit your issue as a new report.

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

Comment By: Christopher K. Paulicka (paulicka)
Date: 2006-03-25 00:52

Message:
Logged In: YES 
user_id=45461

I have a similar problem running under Windows XP.

When I run my code, which uses the logger, in a separate
thread under the cmd console, I get the ValueError: I/O
operation bug.

If I run the code in the same thread under the cmd console,
no problem.
If I run the code still in the background, but under cygwin
bash shell, no problem.

I am running:
ActivePython 2.4.2 Build 10 (ActiveState Corp.) based on
Python 2.4.2 (#67, Jan 17 2006, 15:36:03) [MSC v.1310 32 bit
(Intel)] on win32

I am going to try to make a simple code example that
demonstrates this bug/problem.

christopher at idealab.com


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

Comment By: Guido van Rossum (gvanrossum)
Date: 2003-01-21 22:07

Message:
Logged In: YES 
user_id=6380

OK, checked in.

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

Comment By: Vinay Sajip (vsajip)
Date: 2003-01-19 01:27

Message:
Logged In: YES 
user_id=308438

Aaarrrgh! Sorry about the missing upload. Here it is 
(hopefully)

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

Comment By: Martin v. Löwis (loewis)
Date: 2003-01-18 23:43

Message:
Logged In: YES 
user_id=21627

There's no uploaded file!  You have to check the
checkbox labeled "Check to Upload & Attach File"
when you upload a file.

Please try again.

(This is a SourceForge annoyance that we can do
nothing about. :-( )

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

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


More information about the Patches mailing list