diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2014-04-24 21:47:47 (GMT) |
---|---|---|
committer | Ethan Furman <ethan@stoneleaf.us> | 2014-04-24 21:47:47 (GMT) |
commit | 7b9ff0e6da5371214b29053cdb96218e0d2eb655 (patch) | |
tree | da11b0d718916d64a256d36fcc41287aca922e28 /Lib/test/test_doctest.py | |
parent | 7101cb07ef8cb9e63b99b0e1c8200f355841772c (diff) | |
download | cpython-7b9ff0e6da5371214b29053cdb96218e0d2eb655.zip cpython-7b9ff0e6da5371214b29053cdb96218e0d2eb655.tar.gz cpython-7b9ff0e6da5371214b29053cdb96218e0d2eb655.tar.bz2 |
Issue8297: module attribute lookup failures now include module name in error message.
Diffstat (limited to 'Lib/test/test_doctest.py')
-rw-r--r-- | Lib/test/test_doctest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_doctest.py b/Lib/test/test_doctest.py index 5eb8474..c62e7ca 100644 --- a/Lib/test/test_doctest.py +++ b/Lib/test/test_doctest.py @@ -2171,7 +2171,7 @@ def test_DocTestSuite(): >>> test.test_doctest.sillySetup Traceback (most recent call last): ... - AttributeError: 'module' object has no attribute 'sillySetup' + AttributeError: module 'test.test_doctest' has no attribute 'sillySetup' The setUp and tearDown funtions are passed test objects. Here we'll use the setUp function to supply the missing variable y: @@ -2317,7 +2317,7 @@ def test_DocFileSuite(): >>> test.test_doctest.sillySetup Traceback (most recent call last): ... - AttributeError: 'module' object has no attribute 'sillySetup' + AttributeError: module 'test.test_doctest' has no attribute 'sillySetup' The setUp and tearDown funtions are passed test objects. Here, we'll use a setUp function to set the favorite color in |