summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2009-06-14 21:20:40 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2009-06-14 21:20:40 (GMT)
commitf81ff989d6a3e237f2a14edc327451abeaa70011 (patch)
tree07c9d7f5ac611c5189d6618ea929703c2bf4d5c3
parent983a46543cbf310b5d5915d7bed8e4581cc1507d (diff)
downloadcpython-f81ff989d6a3e237f2a14edc327451abeaa70011.zip
cpython-f81ff989d6a3e237f2a14edc327451abeaa70011.tar.gz
cpython-f81ff989d6a3e237f2a14edc327451abeaa70011.tar.bz2
#6227: Because of a wrong indentation, the test was not testing what it should.
Ensure that the snippet in doctest_aliases actually contains aliases.
-rw-r--r--Lib/test/doctest_aliases.py2
-rw-r--r--Lib/test/test_doctest.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/doctest_aliases.py b/Lib/test/doctest_aliases.py
index e6e5ca9..1f33f83 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 a812868..a350390 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