bpo-31904: fix test_doctest.py failures for VxWorks (GH-23419) · python/cpython@8d4f57d (original) (raw)

Original file line number Diff line number Diff line change
@@ -3039,10 +3039,11 @@ def test_CLI(): r"""
3039 3039 ... '-m', 'doctest', 'nosuchfile')
3040 3040 >>> rc, out
3041 3041 (1, b'')
3042 + >>> # The exact error message changes depending on the platform.
3042 3043 >>> print(normalize(err)) # doctest: +ELLIPSIS
3043 3044 Traceback (most recent call last):
3044 3045 ...
3045 - FileNotFoundError: [Errno ...] No such file or directory: 'nosuchfile'
3046 + FileNotFoundError: [Errno ...] ...nosuchfile...
3046 3047
3047 3048 Invalid doctest option:
3048 3049