This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Tomáš Petříček
Recipients Tomáš Petříček
Date 2017-11-15.23:34:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510788871.25.0.213398074469.issue32042@psf.upfronthosting.co.za>
In-reply-to
Content
The following tests then succeed:

def str_fun():
    """
    >>> str_fun()
    'foo'
    >>> str_fun()
    "foo"
    >>> str_fun()
    '''foo'''
    """
    return 'foo'


def dict_fun():
    """
    >>> dict_fun()
    {'foo': 1, 'bar': 2}
    >>> dict_fun()
    {'bar': 2, 'foo': 1}
    >>> dict_fun()
    dict(foo=1, bar=2)
    """
    return {'foo': 1, 'bar': 2}


if __name__ == '__main__':
    import doctest
    doctest.testmod(verbose=True, optionflags=doctest.ACCEPT_EQUAL_VALUES)
History
Date User Action Args
2017-11-15 23:34:31Tomáš Petříčeksetrecipients: + Tomáš Petříček
2017-11-15 23:34:31Tomáš Petříčeksetmessageid: <1510788871.25.0.213398074469.issue32042@psf.upfronthosting.co.za>
2017-11-15 23:34:31Tomáš Petříčeklinkissue32042 messages
2017-11-15 23:34:31Tomáš Petříčekcreate