[issue14729] test_faulthandler test is too specific to work on Windows

Vinay Sajip report at bugs.python.org
Sat May 5 12:44:35 CEST 2012


New submission from Vinay Sajip <vinay_sajip at yahoo.co.uk>:

In test_faulthandler.test_check_fatal_error, the test expects a response which matches

"""
^Fatal Python error: {name}

{header}:
  File "<string>", line {lineno} in <module>$
""".strip()

On Windows, some more information is appended to the end of the message, so the match fails because of the trailing $. I propose to remove this $, so that the match succeeds just on the basis of the prefix.

Patch attached; I'll apply it soon, assuming you don't object.

----------
components: Tests
files: test_faulthandler.diff
keywords: patch
messages: 159986
nosy: haypo, vinay.sajip
priority: normal
severity: normal
status: open
title: test_faulthandler test is too specific to work on Windows
versions: Python 3.3
Added file: http://bugs.python.org/file25460/test_faulthandler.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14729>
_______________________________________


More information about the Python-bugs-list mailing list