[New-bugs-announce] [issue11505] string.py increased test coverage

Alicia Arlen report at bugs.python.org
Mon Mar 14 20:37:40 CET 2011

New submission from Alicia Arlen <arlen514 at yahoo.com>:

Started from coverage.py results.  Only 6 groups of lines did not have coverage.  Since the Template class originated in PEP292, those tests were added in test_pep292.py.  All Formatter class tests were added in test_string.py.

_invalid test (Lines 89-90):
  This error does not naturally occur, so the regex for pattern was overloaded to create the scenario where the format fails on the first character.

_vformat test (line 174):
  Forced recursion_depth negative to raise the error.

convert_field (lines 226, 299):
  Sent in appropriate convversion requests.

get_field (lines 256-257, 259):
  Added fieldname variations to test getattr and getitem lookups.

components: Tests
files: string_test_coverage.diff
keywords: patch
messages: 130880
nosy: Alicia.Arlen, brian.curtin, georg.brandl
priority: normal
severity: normal
status: open
title: string.py increased test coverage
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file21130/string_test_coverage.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list