Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patched test harness for logging #37797

Closed
vsajip opened this issue Jan 18, 2003 · 6 comments
Closed

Patched test harness for logging #37797

vsajip opened this issue Jan 18, 2003 · 6 comments
Labels
stdlib Python modules in the Lib dir

Comments

@vsajip
Copy link
Member

vsajip commented Jan 18, 2003

BPO 670390
Nosy @gvanrossum, @loewis, @vsajip
Files
  • test_logging.zip: Test harness and output file for logging package
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2006-03-25.12:47:26.000>
    created_at = <Date 2003-01-18.19:32:45.000>
    labels = ['library']
    title = 'Patched test harness for logging'
    updated_at = <Date 2006-03-25.12:47:26.000>
    user = 'https://github.com/vsajip'

    bugs.python.org fields:

    activity = <Date 2006-03-25.12:47:26.000>
    actor = 'loewis'
    assignee = 'none'
    closed = True
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2003-01-18.19:32:45.000>
    creator = 'vinay.sajip'
    dependencies = []
    files = ['4935']
    hgrepos = []
    issue_num = 670390
    keywords = ['patch']
    message_count = 6.0
    messages = ['42465', '42466', '42467', '42468', '42469', '42470']
    nosy_count = 4.0
    nosy_names = ['gvanrossum', 'loewis', 'vinay.sajip', 'paulicka']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue670390'
    versions = ['Python 2.3']

    @vsajip
    Copy link
    Member Author

    vsajip commented Jan 18, 2003

    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?

    @vsajip vsajip closed this as completed Jan 18, 2003
    @vsajip vsajip added the stdlib Python modules in the Lib dir label Jan 18, 2003
    @vsajip vsajip closed this as completed Jan 18, 2003
    @vsajip vsajip added the stdlib Python modules in the Lib dir label Jan 18, 2003
    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Jan 18, 2003

    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. :-( )

    @vsajip
    Copy link
    Member Author

    vsajip commented Jan 19, 2003

    Logged In: YES
    user_id=308438

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

    @gvanrossum
    Copy link
    Member

    Logged In: YES
    user_id=6380

    OK, checked in.

    @paulicka
    Copy link
    Mannequin

    paulicka mannequin commented Mar 24, 2006

    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

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Mar 25, 2006

    Logged In: YES
    user_id=21627

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

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants