mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
#6227: Because of a wrong indentation, the test was not testing what it should.
Ensure that the snippet in doctest_aliases actually contains aliases.
This commit is contained in:
parent
983a46543c
commit
f81ff989d6
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue