Skip to content

Commit 8d4f57d

Browse files
authored
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)
1 parent 6e1eec7 commit 8d4f57d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Lib/test/test_doctest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3039,10 +3039,11 @@ def test_CLI(): r"""
30393039
... '-m', 'doctest', 'nosuchfile')
30403040
>>> rc, out
30413041
(1, b'')
3042+
>>> # The exact error message changes depending on the platform.
30423043
>>> print(normalize(err)) # doctest: +ELLIPSIS
30433044
Traceback (most recent call last):
30443045
...
3045-
FileNotFoundError: [Errno ...] No such file or directory: 'nosuchfile'
3046+
FileNotFoundError: [Errno ...] ...nosuchfile...
30463047
30473048
Invalid doctest option:
30483049
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix test_doctest.py failures for VxWorks.

0 commit comments

Comments
 (0)