Kaydet (Commit) f81ff989 authored tarafından Amaury Forgeot d'Arc's avatar Amaury Forgeot d'Arc

#6227: Because of a wrong indentation, the test was not testing what it should.

Ensure that the snippet in doctest_aliases actually contains aliases.
üst 983a4654
......@@ -10,4 +10,4 @@ class TwoNames:
'''
return 'f'
g = f # define an alias for f
g = f # define an alias for f
......@@ -498,6 +498,8 @@ If a single object is listed twice (under different names), then tests
will only be generated for it once:
>>> from test import doctest_aliases
>>> assert doctest_aliases.TwoNames.f
>>> assert doctest_aliases.TwoNames.g
>>> tests = excl_empty_finder.find(doctest_aliases)
>>> print len(tests)
2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment