Python code coverage for Lib/test/doctest_aliases.py
# | count | content |
---|---|---|
1 | n/a | # Used by test_doctest.py. |
2 | n/a | |
3 | n/a | class TwoNames: |
4 | n/a | '''f() and g() are two names for the same method''' |
5 | n/a | |
6 | n/a | def f(self): |
7 | n/a | ''' |
8 | n/a | >>> print(TwoNames().f()) |
9 | n/a | f |
10 | n/a | ''' |
11 | n/a | return 'f' |
12 | n/a | |
13 | n/a | g = f # define an alias for f |