]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#6227: Because of a wrong indentation, the test was not testing what it should.
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Sun, 14 Jun 2009 21:20:40 +0000 (21:20 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Sun, 14 Jun 2009 21:20:40 +0000 (21:20 +0000)
Ensure that the snippet in doctest_aliases actually contains aliases.

Lib/test/doctest_aliases.py
Lib/test/test_doctest.py

index e6e5ca9551900cd512fce1c0eb9f05e6d03e802c..1f33f83276f0bbc40649e3752e58190cba825a26 100644 (file)
@@ -10,4 +10,4 @@ class TwoNames:
         '''
         return 'f'
 
-        g = f # define an alias for f
+    g = f # define an alias for f
index a8128687b196d2ac3aec8c375b0651590600410d..a3503900c3cf36905337b995cad88c309455ca43 100644 (file)
@@ -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