From: Amaury Forgeot d'Arc Date: Sun, 14 Jun 2009 21:20:40 +0000 (+0000) Subject: #6227: Because of a wrong indentation, the test was not testing what it should. X-Git-Tag: v2.7a1~949 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f81ff989d6a3e237f2a14edc327451abeaa70011;p=thirdparty%2FPython%2Fcpython.git #6227: Because of a wrong indentation, the test was not testing what it should. Ensure that the snippet in doctest_aliases actually contains aliases. --- diff --git a/Lib/test/doctest_aliases.py b/Lib/test/doctest_aliases.py index e6e5ca955190..1f33f83276f0 100644 --- a/Lib/test/doctest_aliases.py +++ b/Lib/test/doctest_aliases.py @@ -10,4 +10,4 @@ class TwoNames: ''' return 'f' - g = f # define an alias for f + g = f # define an alias for f diff --git a/Lib/test/test_doctest.py b/Lib/test/test_doctest.py index a8128687b196..a3503900c3cf 100644 --- a/Lib/test/test_doctest.py +++ b/Lib/test/test_doctest.py @@ -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