Message306320
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) |
|
Date |
User |
Action |
Args |
2017-11-15 23:34:31 | Tomáš Petříček | set | recipients:
+ Tomáš Petříček |
2017-11-15 23:34:31 | Tomáš Petříček | set | messageid: <1510788871.25.0.213398074469.issue32042@psf.upfronthosting.co.za> |
2017-11-15 23:34:31 | Tomáš Petříček | link | issue32042 messages |
2017-11-15 23:34:31 | Tomáš Petříček | create | |
|