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

Coverage execution fails for files not encoded with utf-8 #49906

Closed
maru mannequin opened this issue Apr 1, 2009 · 2 comments
Closed

Coverage execution fails for files not encoded with utf-8 #49906

maru mannequin opened this issue Apr 1, 2009 · 2 comments
Labels
tests Tests in the Lib/test dir type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@maru
Copy link
Mannequin

maru mannequin commented Apr 1, 2009

BPO 5656
Nosy @birkenfeld
Files
  • trace_detect_encoding.patch: Detects encoding of module under coverage.
  • trace_ignore_temp_path.patch: Ignores modules in temp paths for coverage output
  • 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 2009-04-01.23:07:47.465>
    created_at = <Date 2009-04-01.18:25:41.040>
    labels = ['tests', 'type-crash']
    title = 'Coverage execution fails for files not encoded with utf-8'
    updated_at = <Date 2009-04-01.23:07:47.451>
    user = 'https://bugs.python.org/maru'

    bugs.python.org fields:

    activity = <Date 2009-04-01.23:07:47.451>
    actor = 'georg.brandl'
    assignee = 'none'
    closed = True
    closed_date = <Date 2009-04-01.23:07:47.465>
    closer = 'georg.brandl'
    components = ['Tests']
    creation = <Date 2009-04-01.18:25:41.040>
    creator = 'maru'
    dependencies = []
    files = ['13553', '13554']
    hgrepos = []
    issue_num = 5656
    keywords = ['patch']
    message_count = 2.0
    messages = ['85065', '85110']
    nosy_count = 2.0
    nosy_names = ['georg.brandl', 'maru']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue5656'
    versions = ['Python 3.1']

    @maru
    Copy link
    Mannequin Author

    maru mannequin commented Apr 1, 2009

    Running the tests with coverage against files using non-utf8 encoding
    was raising an exception that prevented coverage output from being
    displayed (patch is attached).

    The coverage output was also being polluted with failed attempts to
    display modules that were created during the testing in temporary paths.
    A patch is attached that prevents coverage output from being attempted
    for such files.

    @maru maru mannequin added tests Tests in the Lib/test dir type-crash A hard crash of the interpreter, possibly with a core dump labels Apr 1, 2009
    @birkenfeld
    Copy link
    Member

    Committed in r71002.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    tests Tests in the Lib/test dir type-crash A hard crash of the interpreter, possibly with a core dump
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant