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:
parent
6e1eec71f5
commit
8d4f57dbd1
|
@ -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:
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Fix test_doctest.py failures for VxWorks.
|
Loading…
Reference in New Issue