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

SourceForge.net noreply@sourceforge.net
Sat, 18 Jan 2003 14:43:44 -0800


Patches item #670390, was opened at 2003-01-18 20:32
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=670390&group_id=5470

Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
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: 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