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)
This commit is contained in:
pxinwr 2020-12-05 04:19:32 +08:00 committed by GitHub
parent 6e1eec71f5
commit 8d4f57dbd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -3039,10 +3039,11 @@ Invalid file name:
... '-m', 'doctest', 'nosuchfile') ... '-m', 'doctest', 'nosuchfile')
>>> rc, out >>> rc, out
(1, b'') (1, b'')
>>> # The exact error message changes depending on the platform.
>>> print(normalize(err)) # doctest: +ELLIPSIS >>> print(normalize(err)) # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
... ...
FileNotFoundError: [Errno ...] No such file or directory: 'nosuchfile' FileNotFoundError: [Errno ...] ...nosuchfile...
Invalid doctest option: Invalid doctest option:

View File

@ -0,0 +1 @@
Fix test_doctest.py failures for VxWorks.