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: Patched test harness for logging
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: gvanrossum, loewis, paulicka, vinay.sajip
Priority: normal Keywords: patch

Created on 2003-01-18 19:32 by vinay.sajip, last changed 2022-04-10 16:06 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_logging.zip vinay.sajip, 2003-01-19 00:27 Test harness and output file for logging package
Messages (6)
msg42465 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2003-01-18 19:32
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?
msg42466 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-01-18 22:43
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. :-( )
msg42467 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2003-01-19 00:27
Logged In: YES 
user_id=308438

Aaarrrgh! Sorry about the missing upload. Here it is 
(hopefully)
msg42468 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2003-01-21 21:07
Logged In: YES 
user_id=6380

OK, checked in.
msg42469 - (view) Author: Christopher K. Paulicka (paulicka) Date: 2006-03-24 23:52
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@idealab.com
msg42470 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-03-25 12:47
Logged In: YES 
user_id=21627

This issue is closed. Please submit your issue as a new report.
History
Date User Action Args
2022-04-10 16:06:09adminsetgithub: 37797
2003-01-18 19:32:45vinay.sajipcreate