This file tries to check that all errors above the field-specifier code in unicodeformat.c and pep3101.c can be generated. XXX -- This is definitely still a work in progress! >>> from pep3101 import format as f >>> f() Traceback (most recent call last): TypeError: Function expects at least one argument >>> f(1) Traceback (most recent call last): TypeError: First parameter must be string or unicode object >>> f('{0} {abc', 1) Traceback (most recent call last): ValueError: Unterminated replacement field at format_string[5] >>> f('{') Traceback (most recent call last): ValueError: Unexpected escape to markup at end of format_string