diff options
author | pxinwr <peixing.xin@windriver.com> | 2020-12-04 20:19:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-04 20:19:32 (GMT) |
commit | 8d4f57dbd10846ffb4881b6509a511be0ab3b913 (patch) | |
tree | a42c5bb250f805901c36386948ff5ac0c9c1e58c | |
parent | 6e1eec71f59c344fb23c7977061dc2c97b77d51b (diff) | |
download | cpython-8d4f57dbd10846ffb4881b6509a511be0ab3b913.zip cpython-8d4f57dbd10846ffb4881b6509a511be0ab3b913.tar.gz cpython-8d4f57dbd10846ffb4881b6509a511be0ab3b913.tar.bz2 |
bpo-31904: fix test_doctest.py failures for VxWorks (GH-23419)
Fix test_doctest.py failures for VxWorks by avoiding exact error message checks. (better for everyone all around)
-rw-r--r-- | Lib/test/test_doctest.py | 3 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Tests/2020-11-20-15-07-18.bpo-31904.EBJXjJ.rst | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_doctest.py b/Lib/test/test_doctest.py index bff20f9..6a5013f 100644 --- a/Lib/test/test_doctest.py +++ b/Lib/test/test_doctest.py @@ -3039,10 +3039,11 @@ Invalid file name: ... '-m', 'doctest', 'nosuchfile') >>> rc, out (1, b'') + >>> # The exact error message changes depending on the platform. >>> print(normalize(err)) # doctest: +ELLIPSIS Traceback (most recent call last): ... - FileNotFoundError: [Errno ...] No such file or directory: 'nosuchfile' + FileNotFoundError: [Errno ...] ...nosuchfile... Invalid doctest option: diff --git a/Misc/NEWS.d/next/Tests/2020-11-20-15-07-18.bpo-31904.EBJXjJ.rst b/Misc/NEWS.d/next/Tests/2020-11-20-15-07-18.bpo-31904.EBJXjJ.rst new file mode 100644 index 0000000..e5e66ce --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2020-11-20-15-07-18.bpo-31904.EBJXjJ.rst @@ -0,0 +1 @@ +Fix test_doctest.py failures for VxWorks. |