diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2014-04-24 14:47:47 -0700 |
---|---|---|
committer | Ethan Furman <ethan@stoneleaf.us> | 2014-04-24 14:47:47 -0700 |
commit | 2e75a16f53348e4dba770e823aca1777168d83c4 (patch) | |
tree | 2464c4b433b1a5586a029fcf46ff7ac548836558 /Lib/test/test_doctest.py | |
parent | 87d985f73482ad0703f313bfccf359e65084a31d (diff) | |
download | cpython-2e75a16f53348e4dba770e823aca1777168d83c4.tar.gz |
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 5eb84747f8..c62e7ca0f7 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 |